diff options
Diffstat (limited to 'process_multiples.c')
-rw-r--r-- | process_multiples.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/process_multiples.c b/process_multiples.c index 61adcb3..0acd82d 100644 --- a/process_multiples.c +++ b/process_multiples.c @@ -17,9 +17,17 @@ int check_L_linecount(uint64_t Flines, uint64_t focus) { return _VALID; } -uint64_t call_L_plus_continue(char *multiple) { +uint64_t call_L_plus_minus_continue(char *multiple) { - fprintf(stdout, "+ or - CONTINUE %s\n", multiple); + char new_multiple[32] = { '\0' }; + + int i = 0; + int j = 2; + for( ; multiple[j] != '\n' ; i++, j++) { + new_multiple[i] = multiple[j]; + } + + fprintf(stdout, "%s\n", new_multiple); return 0; } @@ -91,7 +99,7 @@ uint64_t call_L(char *multiple, uint64_t focus, uint64_t Flines) { focus = call_L_plus_minus_only(focus, multiple[1], Flines); return focus; } - call_L_plus_continue(multiple); + call_L_plus_minus_continue(multiple); } |