Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef 64-bit
- #define DECIMAL_FORMAT %ld
- #else
- #define DECIMAL_FORMAT %d
- #endif
- .
- intptr_t d;
- .
- printf(“Some message with DECIMAL_FORMAT in the middle of itn”, d);
- intptr_t d = ... ;
- printf("This is an intptr_t: %" PRIxPTR "n", d);
- printf("Some message with %ld in the middle of itn", (long) d);
- pid_t pid = fork();
- printf("Fork returned %d.n", (int) pid);
Add Comment
Please, Sign In to add comment