made work: line numbers in files with the correct indentation level (tested on a > 1000 lines file)

This commit is contained in:
Odweta
2023-12-24 12:44:13 +01:00
parent 490a7cc973
commit 342ad58b51
10 changed files with 180 additions and 13 deletions
+2
View File
@@ -32,4 +32,6 @@ int fileExists(file_t* f); // 1 = yes, 0 = no
void fileCreateEmpty(char* path); // create an empty file with the given name
void fileNumberLines(file_t* f); // prepend line numbers in front of each line in a file
#endif
+10
View File
@@ -0,0 +1,10 @@
#ifndef UTIL_H
#define UTIL_H
char* intToString(int x); // convert an int into a string
long pow(int x, int n); // x^n
int maxLowerPowerOf10(int x); // biggest power of 10 that is < x
#endif