aboutsummaryrefslogtreecommitdiff
path: root/test/021_io_SRC_write
diff options
context:
space:
mode:
Diffstat (limited to 'test/021_io_SRC_write')
-rw-r--r--test/021_io_SRC_write/io_SRC_tests.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/021_io_SRC_write/io_SRC_tests.c b/test/021_io_SRC_write/io_SRC_tests.c
index ca33d1e..c427c6c 100644
--- a/test/021_io_SRC_write/io_SRC_tests.c
+++ b/test/021_io_SRC_write/io_SRC_tests.c
@@ -1,11 +1,13 @@
1#include "../test.h" 1#include "../test.h"
2 2
3int main(void) { 3int main(void) {
4 char *c, str[STRLENMAX]; 4 char str[STRLENMAX], *aux;
5 cube_t cube; 5 cube_t cube;
6 6
7 for (c = str; (*c = getchar()) != EOF; c++) ; 7 aux = str;
8 *c = '\0'; 8 while (fgets(aux, STRLENMAX, stdin) != NULL)
9 while (*aux != '\n')
10 aux++;
9 11
10 cube = readcube("H48", str); 12 cube = readcube("H48", str);
11 13

Generated with cgit - Back to sebastiano.tronto.net