delorie.com/djgpp/doc/libc/libc_731.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

sleep

Syntax

 
#include <unistd.h>

unsigned sleep(unsigned seconds);

Description

This function causes the program to pause for seconds seconds.

Return Value

The number of seconds that haven't passed (i.e. always zero)

Portability

ANSI/ISO C No
POSIX 1003.2-1992; 1003.1-2001

Example

 
sleep(5);


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004