Hello. I have a problem with a little c program. I don't know how do a 'delay'. Also I don't know what function could be equal or similar to kbhit(). You remerber that the libraries conio.h & dos.h it's not available in Linux.
if you use sleep(<value>); you will free up the processor until the time expires. If you dont know the delay and want the user to have interaction to stop the delay then use getch.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.