User Tools

Site Tools


c:dos.h:delay
click
to support this page (eg 0,42 € or so) Thanks.

Differences

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

Link to this comparison view

c:dos.h:delay [2013/02/03 13:04] (current)
158.181.88.241 created
Line 1: Line 1:
  
 +====== delay ======
 +<code c>
 +void delay(unsigned int);
 +</code>
 +
 +===== description of delay =====
 +delay function is used to suspend execution of a program for a particular time\\
 +the parameter are number of milliseconds ( 1 second = 1000 milliseconds)\\
 +
 +<code c>
 +#include<stdio.h>
 +#include<dos.h>
 +
 +int main( void )
 +{
 +    printf("This c program quits in 42 seconds.\n");        
 +    delay(42000);                        
 +    return 0;
 +}
 +</code>
 +
 +==== output of delay c example ====
 +    This c program quits in 42 seconds
advertising
c/dos.h/delay.txt · Last modified: 2013/02/03 13:04 by 158.181.88.241

Impressum