Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #define STRING_LEN(x) x, (int) sizeof (x) - 1
- int main(void)
- {
- printf ("%s (%d)\n", STRING_LEN ("String"));
- printf ("Compare %d\n", strncmp ("String", STRING_LEN ("String")));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement