summaryrefslogtreecommitdiff
path: root/functions.c
diff options
context:
space:
mode:
authorOskar <[email protected]>2023-11-11 19:53:40 +0100
committerOskar <[email protected]>2023-11-11 19:53:40 +0100
commitfee7cad3e72faadd1920e0725081ce5c517a16c6 (patch)
treec04fb6ccbc61983fa191d438a352a8e96d2819bf /functions.c
parent5e239ad4ca0caf83d28da55609ccc3f2d2ed71ea (diff)
fixed huge bug in write function
Diffstat (limited to 'functions.c')
-rw-r--r--functions.c4
1 files changed, 2 insertions, 2 deletions
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;
}