> delay<DOS.H> ~ Online tutorial

delay


 Suspends execution for interval (milliseconds)

 Declaration: 

 void delay(unsigned milliseconds);

 Remarks:


With a call to delay, the current program is suspended from execution for
the time specified by the argument milliseconds.

It is not necessary to make a calibration call to delay before using it.

delay is accurate to one millisecond.

 Return Value:
None

 Example:

 /* Emits a 440-Hz tone for 500 milliseconds */
 #include <dos.h>

 int main(void)
 {
    sound(440);
    delay(500);
    nosound();

    return 0;
 }

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: