summaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/test.c b/test.c
index d24517d..191d22a 100644
--- a/test.c
+++ b/test.c
@@ -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));