summaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
authorsijanec <anton@sijanec.eu>2020-12-27 23:27:52 +0100
committersijanec <anton@sijanec.eu>2020-12-27 23:27:52 +0100
commit3713a80a0f7433255867a08b04401cbdee988a7a (patch)
treec16e49b8cdef5732edf868a02ddba988b27dfb94 /test.c
parent"okupiral" (-: zZžŽ za shranjevanje v živo, sedaj tudi velika črka naredi enako stvar kot mala pri funkciji (diff)
downloadrtv4d-dl-3713a80a0f7433255867a08b04401cbdee988a7a.tar
rtv4d-dl-3713a80a0f7433255867a08b04401cbdee988a7a.tar.gz
rtv4d-dl-3713a80a0f7433255867a08b04401cbdee988a7a.tar.bz2
rtv4d-dl-3713a80a0f7433255867a08b04401cbdee988a7a.tar.lz
rtv4d-dl-3713a80a0f7433255867a08b04401cbdee988a7a.tar.xz
rtv4d-dl-3713a80a0f7433255867a08b04401cbdee988a7a.tar.zst
rtv4d-dl-3713a80a0f7433255867a08b04401cbdee988a7a.zip
Diffstat (limited to 'test.c')
-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));