diff options
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -2,8 +2,13 @@ #include <stdlib.h> #include <string.h> int main (int argc, char ** argv) { - char * metavalues[] = { "abc", "def", "ghi", "jkl" }; - fprintf(stdout, "%s\n", { "a", "b", "c", "d" }[3]); + char aaa[] = "chunk_1234.ts"; + char bbb[] = "chunk_%u.ts"; + unsigned int ccc; + sscanf(aaa, bbb, &ccc); + fprintf(stdout, "%u\n", ccc); + // char * metavalues[] = { "abc", "def", "ghi", "jkl" }; + // fprintf(stdout, "%s\n", { "a", "b", "c", "d" }[3]); // const char b[5] = "aaaaa"; // const char a[5] = "aaaaa"; // fprintf(stdout, "%d\n", strncasecmp(a, b, 325432)); |