I use Ubuntu Linux. When I try use \"usleep\" function, I get information about \"implicit declaration of function usleep\". Below is the error code:
muteks.
#include <unistd.h>
See the man usleep
usleep() is declared in the standard header unistd.h which you haven't included. Include it:
usleep()
unistd.h
On a relevant note: usleep() has been removed since POSIX-2008 and recommends to use nanosleep() instead.