summaryrefslogtreecommitdiff
path: root/editmode.c
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-04-12 19:18:52 +0200
committerOskar <[email protected]>2024-04-12 19:18:52 +0200
commit8454a5c30c8f5f17abd377965b61dc0786a08800 (patch)
tree2a491f7a364c3de23135dd1322a5dae4ef69e993 /editmode.c
parentd6ea48c5be4ec380d2ae18af19ce6107926f58ac (diff)
Changed types in various functions
Diffstat (limited to 'editmode.c')
-rw-r--r--editmode.c6
1 files changed, 3 insertions, 3 deletions
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;