Search:

Type: Posts; User: limerick

Search: Search took 0.00 seconds.

  1. Replies
    26
    Views
    3,152

    You haven't specifically said what errors are...

    You haven't specifically said what errors are occuring, but I'm inclined to think that your program is segfaulting when it attempts to overwrite the different strings.

    The following...


    char...
  2. Try encapsulating the function prototypes in your...

    Try encapsulating the function prototypes in your .h file with...



    #ifdef __cplusplus
    extern "C" {
    #endif

    int myFunc(char *myString);
    /* more prototypes here */
  3. Replies
    30
    Views
    23,739

    Well, its just designed to follow a wall to its...

    Well, its just designed to follow a wall to its right until the wall stops, if that's what you mean. If the wall is like the one below...



    ###########
    # #
    # ##### #
    # # ...
  4. Replies
    30
    Views
    23,739

    Well, you didn't expect me to write the lot for...

    Well, you didn't expect me to write the lot for you did you? :rolleyes:
    I'm not that nice a person. ;)

    You'd have to code the remaining cases (left, right, down) before it would work and a...
  5. Thread: strings...

    by limerick
    Replies
    5
    Views
    1,203

    Is usleep ANSI? I did a quick man and the...

    Is usleep ANSI?

    I did a quick man and the documentation is written by Redhat people which suggests to me that it may be specific to Linux or even just Redhat. :(

    I guess it wouldn't matter if...
  6. Replies
    30
    Views
    23,739

    It seems to me to be pretty strange that you have...

    It seems to me to be pretty strange that you have to use recursion in this case. :confused:

    I would have done it by using a loop in main to call the function repeatedly.

    My suggestion would be...
Results 1 to 6 of 6