#include <stdio.h> int main (int argc, char *argv[]){ unsigned long int id = 0; id = strtoul(argv[1], NULL, 16); printf("value: %lx\n", id); return 0;}
Standard input is empty
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
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!