Skip to content

Instantly share code, notes, and snippets.

@paullaffitte
Created February 2, 2018 18:24
Show Gist options
  • Save paullaffitte/28dc2b8e33dcec23e88d8be44c0a7ab9 to your computer and use it in GitHub Desktop.
Save paullaffitte/28dc2b8e33dcec23e88d8be44c0a7ab9 to your computer and use it in GitHub Desktop.
debugging macro for malloc developpement
#define PRINTF(...) \
do { \
char buffer[10000]; \
sprintf(buffer, __VA_ARGS__); \
write(1, buffer, strlen(buffer)); \
} while (0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment