diff options
author | sijanec <anton@sijanec.eu> | 2020-12-27 23:27:52 +0100 |
---|---|---|
committer | sijanec <anton@sijanec.eu> | 2020-12-27 23:27:52 +0100 |
commit | 3713a80a0f7433255867a08b04401cbdee988a7a (patch) | |
tree | c16e49b8cdef5732edf868a02ddba988b27dfb94 /test.c | |
parent | "okupiral" (-: zZžŽ za shranjevanje v živo, sedaj tudi velika črka naredi enako stvar kot mala pri funkciji (diff) | |
download | rtv4d-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.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)); |