From 32e27cbd2d5c151e7f4805dd862c5ec18ca62b9d Mon Sep 17 00:00:00 2001 From: Oskar Date: Sun, 11 Feb 2024 17:51:01 +0100 Subject: README update --- functions.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'functions.c') diff --git a/functions.c b/functions.c index b308622..e0f6ba9 100644 --- a/functions.c +++ b/functions.c @@ -6,20 +6,6 @@ #include #include -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); -- cgit v1.2.3