Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
341 B

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <windows.h>
  4. __cdecl main (int argc, LPSTR argv[])
  5. {
  6. int i;
  7. if (argc<=1) {
  8. printf( "Set errorlevel to user-specified integer value.\n" );
  9. printf( "Usage: %s <errorlevel>\n", argv[0]);
  10. printf( " ex: %s 1\n", argv[0]);
  11. return 1;
  12. }
  13. i = atoi( argv[1] );
  14. return i;
  15. }