diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2020-12-28 14:42:10 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2020-12-28 14:42:10 +0100 |
commit | a67365b43a446e33311e9e18b755200fb8dbf031 (patch) | |
tree | e12d2f2ca511eb474fd28a6ee8b8a35231a21eee /test.c | |
parent | različica 0.0.2 sedaj prenese samo najboljši videoposnetek (diff) | |
parent | izdaja 0.0.3, pripravljen na združitev v master (diff) | |
download | rtv4d-dl-a67365b43a446e33311e9e18b755200fb8dbf031.tar rtv4d-dl-a67365b43a446e33311e9e18b755200fb8dbf031.tar.gz rtv4d-dl-a67365b43a446e33311e9e18b755200fb8dbf031.tar.bz2 rtv4d-dl-a67365b43a446e33311e9e18b755200fb8dbf031.tar.lz rtv4d-dl-a67365b43a446e33311e9e18b755200fb8dbf031.tar.xz rtv4d-dl-a67365b43a446e33311e9e18b755200fb8dbf031.tar.zst rtv4d-dl-a67365b43a446e33311e9e18b755200fb8dbf031.zip |
Diffstat (limited to '')
-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)); |