From fee7cad3e72faadd1920e0725081ce5c517a16c6 Mon Sep 17 00:00:00 2001 From: Oskar Date: Sat, 11 Nov 2023 19:53:40 +0100 Subject: fixed huge bug in write function --- functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functions.c') diff --git a/functions.c b/functions.c index ac3f789..e5837b7 100644 --- a/functions.c +++ b/functions.c @@ -55,7 +55,7 @@ int COUNT_LINES_IN_FILE (char filename[], size_t *lines) { file = fopen(filename,"rb"); // Open file if (file == NULL) { // Check if you can open file - fprintf(stderr, "Cannot open file.\n"); + fprintf(stderr, "Cannot open file. COUNT_LINES_IN_FILE\n"); return 1; } fseek(file, -1, SEEK_END); @@ -128,7 +128,7 @@ int GET_LINE(char filename[], long focus, char **line, size_t *start) { // Makin file = fopen(filename,"r"); // Open file if (file == NULL) { // Check if you can open file - fprintf(stderr, "Cannot open file.\n"); + fprintf(stderr, "Cannot open file GET_LINE.\n"); return 1; } -- cgit v1.2.3