diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit df3a8e87945eb15e431d1d2e8656b76ea10a26de
parent 3d9b9460d1737b3b4cb4905b12348df5013e634e
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sat, 25 Dec 2021 12:55:34 +0100

remove debug messages

Diffstat:
Msrc/utils.c | 11-----------
1 file changed, 0 insertions(+), 11 deletions(-)

diff --git a/src/utils.c b/src/utils.c @@ -153,8 +153,6 @@ char* fold(const char* str) { } char* unfold(const char* str) { - fprintf(stderr, "Before unfolding: %s\n", str); - // work on a copy of the str char* strcp = (char *) malloc(strlen(str) * sizeof(char) + 1); if (strcp == NULL) { @@ -191,7 +189,6 @@ char* unfold(const char* str) { res = strtok(NULL, "\n"); if (res == NULL) { - fprintf(stderr, "No more lines in multiline string, stop unfolding.\n"); break; } @@ -224,7 +221,6 @@ char* extract_ical_field(const char* ics, char* key, long* start_pos, bool multi regmatch_t pm[1]; char key_regex[strlen(key) + 1]; sprintf(key_regex, "^%s", key); - fprintf(stderr, "Key regex: %s\n", key_regex); if (regcomp(&re, key_regex, 0) != 0) { perror("Failed to compile regex"); @@ -248,14 +244,7 @@ char* extract_ical_field(const char* ics, char* key, long* start_pos, bool multi res = strstr(res, ":"); // value res++; // strip the ":" - fprintf(stderr, "Extracted ical result value: %s\n", res); - fprintf(stderr, "Extracted ical result size: %li\n", strlen(res)); - - fprintf(stderr, "Sizeof ics: %li\n", strlen(ics)); - fprintf(stderr, "Start pos: %li\n", *start_pos); - fprintf(stderr, "Res: %s\n", res); *start_pos = res - icscp; - fprintf(stderr, "Start pos: %li\n", *start_pos); if (strlen(res) != 0) { // non-empty remote value