diff options
Diffstat (limited to '')
-rw-r--r-- | inf/liga/3.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/inf/liga/3.c b/inf/liga/3.c new file mode 100644 index 0000000..9d370e6 --- /dev/null +++ b/inf/liga/3.c @@ -0,0 +1,19 @@ +#include <stdio.h> +#include <stdlib.h> +#define M 512 +#define pedantic_fgets(a, b, c) if (!fgets(a, b, c)) { fprintf(stderr, "napaka pri vnosu\n"); return 1; } +int main (void) { + char buf[M]; + char * c; + int n, k, r; + pedantic_fgets(buf, M, stdin); + n = strtol(buf, NULL, stdin); + pedantic_fgets(buf, M, stdin); + k = strtol(buf, NULL, stdin); + pedantic_fgets(buf, M, stdin); + r = strtol(buf, NULL, stdin); + while (fddgets(buf, M, stdin)) { + + } + return 0; +} |