fork(4) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <inttypes.h>
  4.  
  5. int main(void) {
  6.  
  7. printf("WORD=%d\n", (int16_t) strtol("F123", NULL, 16));
  8. printf("foo=%"PRIu32"\n",(uint32_t) foo);
  9. printf("QWORD=%lld\n", (int64_t) strtol("FFFFFFFFFFFFF123", NULL, 16));
  10.  
  11. return 0;
  12. }
  13.  
  14.  
Compilation error #stdin compilation error #stdout 0s 2112KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:8:37: error: 'foo' undeclared (first use in this function)
 printf("foo=%"PRIu32"\n",(uint32_t) foo);
                                     ^
prog.c:8:37: note: each undeclared identifier is reported only once for each function it appears in
stdout
Standard output is empty