aboutsummaryrefslogtreecommitdiff
path: root/test/023_io_LST_write
diff options
context:
space:
mode:
Diffstat (limited to 'test/023_io_LST_write')
-rw-r--r--test/023_io_LST_write/io_LST_tests.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/023_io_LST_write/io_LST_tests.c b/test/023_io_LST_write/io_LST_tests.c
index 3f42d7a..45cc203 100644
--- a/test/023_io_LST_write/io_LST_tests.c
+++ b/test/023_io_LST_write/io_LST_tests.c
@@ -8,11 +8,13 @@ cube_t readcube(char *, char *);
8void writecube(char *, cube_t, char *); 8void writecube(char *, cube_t, char *);
9 9
10int main(void) { 10int main(void) {
11 char *c, str[STRLENMAX]; 11 char str[STRLENMAX], *aux;
12 cube_t cube; 12 cube_t cube;
13 13
14 for (c = str; (*c = getchar()) != EOF; c++) ; 14 aux = str;
15 *c = '\0'; 15 while (fgets(aux, STRLENMAX, stdin) != NULL)
16 while (*aux != '\n')
17 aux++;
16 18
17 cube = readcube("H48", str); 19 cube = readcube("H48", str);
18 20

Generated with cgit - Back to sebastiano.tronto.net