home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
datafiles
/
text
/
c_tutor
/
special.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-02-27
|
713b
|
27 lines
#include "stdio.h"
main()
{
int index;
for (index = 0;index < 6;index++) {
printf("This line goes to the standard output.\n");
fprintf(stderr,"This line goes to the error device.\n");
}
exit(4); /* This can be tested with the DOS errorlevel
command in a batch file. The number returned
is used as follows;
IF ERRORLEVEL 4 GOTO FOUR
(continue here if less than 4)
.
.
GOTO DONE
:FOUR
(continue here if 4 or greater)
.
.
:DONE
*/
}