Guest User

Untitled

a guest
Jun 24th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #ifdef 64-bit
  2. #define DECIMAL_FORMAT %ld
  3. #else
  4. #define DECIMAL_FORMAT %d
  5. #endif
  6. .
  7. intptr_t d;
  8. .
  9. printf(“Some message with DECIMAL_FORMAT in the middle of itn”, d);
  10.  
  11. intptr_t d = ... ;
  12. printf("This is an intptr_t: %" PRIxPTR "n", d);
  13.  
  14. printf("Some message with %ld in the middle of itn", (long) d);
  15.  
  16. pid_t pid = fork();
  17. printf("Fork returned %d.n", (int) pid);
Add Comment
Please, Sign In to add comment