Advertisement
Guest User

Untitled

a guest
Jun 24th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. #define STRING_LEN(x) x, (int) sizeof (x) - 1
  5.  
  6. int main(void)
  7. {
  8. printf ("%s (%d)\n", STRING_LEN ("String"));
  9. printf ("Compare %d\n", strncmp ("String", STRING_LEN ("String")));
  10. return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement