From 8454a5c30c8f5f17abd377965b61dc0786a08800 Mon Sep 17 00:00:00 2001 From: Oskar Date: Fri, 12 Apr 2024 19:18:52 +0200 Subject: Changed types in various functions --- editmode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editmode.c') diff --git a/editmode.c b/editmode.c index 7080c84..149a158 100644 --- a/editmode.c +++ b/editmode.c @@ -149,9 +149,9 @@ int check_end_newline(char filename[]) { // function that checks if a file ends } -int new_line(char filename[], long new_line_pos_temp) { // creates a new line within a file after a specified line number +int new_line(char filename[], long long new_line_pos_temp) { // creates a new line within a file after a specified line number - long new_line_pos; + long long new_line_pos; if (new_line_pos_temp < 0) { fprintf(stderr, "The new line can not be under 0!\n"); return 1; @@ -203,7 +203,7 @@ int new_line(char filename[], long new_line_pos_temp) { // creates a new line wi } -int remove_line_contents(char filename[], long focus) { // removes contents of a specified line without removing the newline +int remove_line_contents(char *filename, uint64_t focus) { // removes contents of a specified line without removing the newline char *line; size_t start; -- cgit v1.2.3