|
From: Brian D. <br...@de...> - 2007-05-20 21:35:14
|
Charles Sullivan wrote: > > #define sleep(seconds) Sleep((seconds)*1000) > > > > would be much simpler. > > > > --tml > > Indeed it is, now that I've assimilated what you and the others > have told me. Thanks Tor. > > I downloaded a lot of different packages from the MinGW site while > looking for the elusive 'sleep()' function. Would the MSYS package > by itself have given me what is needed for 'Sleep()'? Sleep() with a capital 'S' is a Win32 API function, i.e. it is provided by the operating system, and you need no external library or package to use it. Just #include <windows.h> to get the prototype. Brian |