User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:dos.h:sleep

sleep

void sleep( int );

description of sleep

delay programm for given number of seconds

#include<stdio.h>
#include<dos.h>
 
int main( void )
{
   printf("Wait or better sleep for 42 seconds to continue.\n");
   sleep(42);
   printf("Programm execution continued after 42 seconds");
   return 0;
}

output of sleep c example

  Wait or better sleep for 42 seconds to continue
  .... 42 seconds later
  Programm execution continued after 42 seconds 
advertising
c/dos.h/sleep.txt · Last modified: 2013/02/03 13:30 by 158.181.88.241

Impressum Datenschutz