fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main (int argc, char *argv[])
  4. {
  5.  
  6. unsigned long int id = 0;
  7.  
  8. id = strtoul(argv[1], NULL, 16);
  9. printf("value: %lx\n", id);
  10.  
  11. return 0;
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:8:10: error: implicit declaration of function 'strtoul' [-Werror=implicit-function-declaration]
     id = strtoul(argv[1], NULL, 16);
          ^
cc1: all warnings being treated as errors
stdout
Standard output is empty