Hi,
I have been using the functions nanosleep and usleep in my project but my compiler cant recognize them even though I included the library time.h and unistd.h.
Is there a working function that does it in C?
btw, im using a linux station.
Thanks
Hi,
I have been using the functions nanosleep and usleep in my project but my compiler cant recognize them even though I included the library time.h and unistd.h.
Is there a working function that does it in C?
btw, im using a linux station.
Thanks
I believe these two functions are posix functions.
What compiler,OS and error messages?
You can try usleep() which is supposed to be in microseconds. It's likely that either 1) you don't have them or 2) you need to link against something.
Well, if it's implicit declaration, that means you're not actually including the right header for it (otherwise it would have been explicitly defined)
well, both time.h and unistd.h are included in my project. any other libraries i need to include?
bump?