summaryrefslogtreecommitdiff
path: root/process_multiples.c
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-04-01 19:48:23 +0200
committerOskar <[email protected]>2024-04-01 19:48:23 +0200
commit44c83f6d38d166a04d71dca697a7ba4d2ea40cdd (patch)
treee2ff8952d8381c034f556398b96d8ac6fe106e9d /process_multiples.c
parentf5af9591856569c39d718059b3dbbc69c6e5f8d5 (diff)
TODO update. I am done for today.
Diffstat (limited to 'process_multiples.c')
-rw-r--r--process_multiples.c14
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);
}