User Tools

Site Tools


c:dos.h:sleep

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:dos.h:sleep [2024/02/16 01:06] (current)
Line 1: Line 1:
 +
 +====== sleep ======
 +<code c>
 +void sleep( int );
 +</code>
 +
 +===== description of sleep =====
 +delay programm for given number of seconds\\
 +
 +<code c>
 +#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;
 +}
 +</code>
 +
 +==== output of sleep c example ====
 +    Wait or better sleep for 42 seconds to continue
 +    .... 42 seconds later
 +    Programm execution continued after 42 seconds 
  

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/dos.h/sleep.txt · Last modified: 2024/02/16 01:06 (external edit)

Impressum Datenschutz