made work: line numbers in files with the correct indentation level (tested on a > 1000 lines file)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user