Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <dos.h>
    void sleep( unsigned seconds );

Description:
    The sleep function suspends execution by the specified number of
    seconds.

Returns:
    The sleep function has no return value.

Example:
    /*
     * The following program sleeps for the
     * number of seconds specified in argv[1].
     */
    #include <stdlib.h>
    #include <dos.h>

    void main( int argc, char *argv[] )
      {
        unsigned seconds;

        seconds = (unsigned) strtol( argv[1], NULL, 0 );
        sleep( seconds );
      }

Classification:
    WATCOM

Systems:
    All, Netware

See Also:
    delay

See Also: delay

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson