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...
Type: Posts; User: limerick
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...
Try encapsulating the function prototypes in your .h file with...
#ifdef __cplusplus
extern "C" {
#endif
int myFunc(char *myString);
/* more prototypes here */
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...
###########
# #
# ##### #
# # ...
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...
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...
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...