diff options
author | rafa_99 <raroma09@gmail.com> | 2021-09-16 23:39:39 +0100 |
---|---|---|
committer | rafa_99 <raroma09@gmail.com> | 2021-09-16 23:39:39 +0100 |
commit | 2fd3a9d009d19e48eefda098cbedcf1aa02b660d (patch) | |
tree | 345617c4d7e0ca854f6807fdd4770678eb77b799 /src/utils.c | |
parent | 390763b0adcf3c435405251fc2983df8e73df7b2 (diff) |
Updated Code Path
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/utils.c b/src/utils.c index d625fed..5391e6d 100644 --- a/src/utils.c +++ b/src/utils.c @@ -207,51 +207,3 @@ checkNumber (char *num) return number; } - -void -printVideoInfo (char *format, Video *videos, int numberOfVideos) -{ - if (format != NULL && strlen (format) > 0) - { - for (int i = 0; i < numberOfVideos; i++) - { - for (int j = 0; j < strlen (format); j++) - { - switch (format[j]) - { - case 'a': - printf ("%s", videos[i].author); - break; - case 'd': - printf ("%s", videos[i].duration); - break; - case 'i': - printf ("%s", videos[i].id); - break; - case 't': - printf ("%s", videos[i].title); - break; - case 'R': - printf ("\n"); - break; - case 'T': - printf ("\t"); - break; - default: - if (!isalpha (format[j])) - { - printf ("%c", format[j]); - } - } - } - printf ("\n"); - } - } - else - { - for (int i = 0; i < numberOfVideos; i++) - { - printf ("%s\t%s\n", videos[i].id, videos[i].title); - } - } -} |