Created
January 26, 2012 19:37
-
-
Save juzna/1684610 to your computer and use it in GitHub Desktop.
sscanf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main (int argc, char **argv) { | |
char str[] = "image%06d.png", buf[100]; | |
int num; | |
sscanf (str,"%s", buf); | |
printf ("%s\n", buf); | |
return 0; | |
} | |
/* | |
juzna@juzna-pc:/tmp$ gcc tst.c && ./a.out | |
image%06d.png | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment