summaryrefslogtreecommitdiff
path: root/functions.c
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-02-11 17:51:01 +0100
committerOskar <[email protected]>2024-02-11 17:51:01 +0100
commit32e27cbd2d5c151e7f4805dd862c5ec18ca62b9d (patch)
treed5978af5f32fa177b95913ceead88fb9bfa2fc3c /functions.c
parentdd8b6d127e366ace19860781b00812e44c0c4a27 (diff)
README update
Diffstat (limited to 'functions.c')
-rw-r--r--functions.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/functions.c b/functions.c
index b308622..e0f6ba9 100644
--- a/functions.c
+++ b/functions.c
@@ -6,20 +6,6 @@
#include <string.h>
#include <stdint.h>
-void confirm() {
- struct termios old,new;
-
- tcgetattr(fileno(stdin),&old);
- tcgetattr(fileno(stdin),&new);
- cfmakeraw(&new);
- tcsetattr(fileno(stdin),TCSANOW,&new);
- fputs("Press any key to continue...",stdout);
- fflush(NULL);
- fgetc(stdin);
- tcsetattr(fileno(stdin),TCSANOW,&old);
- puts("");
-}
-
int choice() {
char choice;
@@ -56,7 +42,7 @@ int count_lines_in_file (char filename[], uint64_t *lines) {
file = fopen(filename,"rb"); // Open file
if (file == NULL) { // Check if you can open file
- fprintf(stderr, "Cannot open file. COUNT_LINES_IN_FILE\n");
+ fprintf(stderr, "count_lines_in_file(): Cannot open file.\n");
return 1;
}
fseek(file, -1, SEEK_END);