Guest User

Untitled

a guest
Jun 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <string.h>
  4.  
  5. /* run with valgrind */
  6.  
  7. int main() {
  8. char *x = strdup("fo");
  9. if(!strcmp("bar", x))
  10. puts("spam");
  11. free(x);
  12. return 0;
  13. }
Add Comment
Please, Sign In to add comment