cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Sleep(int)
Sleep(int)
Jun 30, 2011 at 6:58pm UTC
xDavid
(4)
I need use sleep(int), but im programing in Ubuntu, then I have not this library, how can I use this?
Forgive my bad English.
Thanks!
Jun 30, 2011 at 7:07pm UTC
writetonsharma
(1461)
i think you need to include unistd.h and i think it doesn't use any library except libc. if you have gcc installed, you are good to go.
download a gcc .deb package from ubunut ftp if you don't have it.
Jun 30, 2011 at 7:34pm UTC
xDavid
(4)
I've tried and it works, thank you very much.
Jun 30, 2011 at 8:31pm UTC
writetonsharma
(1461)
always use man pages when you dont know how to use any function.
man <function_name>
Topic archived. No new replies allowed.