Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!mintaka!bloom-beacon!eru!luth!sunic!dkuug!rcbal!ofl From: ofl@kos.rci.dk (Ole Frank Larsen) Newsgroups: comp.lang.c Subject: sleep() in MSC 5.1 ??? Message-ID: <826@kos.rci.dk> Date: 8 May 90 08:30:33 GMT Distribution: comp Organization: RC International, Copenhagen, Denmark Lines: 23 I, who normally writes UNIX programs, was writing a small MS-DOS program yesterday. When I tried to compile it with MSC 5.1 there was an unresolved external viz.: _sleep(). Looking in the manual I utterly failed to find any sleep(), wait(), delay() or whatever this function may be called. Is it possible that sleep() has not been implemented in the standard libraries? I could of course write one myself, but I would like to know whether anyone has observed this before. Another short question: How do you empty the keyboard buffer without having to read all the keystrokes? I have tried fflush(stdin), but this does not work. Thank you in advance -- Ole Frank Larsen. RC International, Denmark ofl@rci.dk Hackers do it with fewer instructions