windows-nt/Source/XPSP1/NT/sdktools/seterror/seterror.c

20 lines
341 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
__cdecl main (int argc, LPSTR argv[])
{
int i;
if (argc<=1) {
printf( "Set errorlevel to user-specified integer value.\n" );
printf( "Usage: %s <errorlevel>\n", argv[0]);
printf( " ex: %s 1\n", argv[0]);
return 1;
}
i = atoi( argv[1] );
return i;
}