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/C++ v10.0 : C library - <b>synopsis:</b> 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.

See Also:
    delay

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

    void main()
      {
        unsigned seconds;

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

Classification:
    WATCOM

Systems:
    All

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