made examples/demos for vectors && files && lists | also fixed a bug with the vector and list size and popping, explained in the adjacent comment
This commit is contained in:
+2
-4
@@ -13,15 +13,13 @@ file_t* fileInit(char* path); // initialization function
|
||||
|
||||
void fileCleanup(file_t* f); // just to be memory safe...
|
||||
|
||||
int fileCountLines(file_t* f); // counts the lines in a file
|
||||
|
||||
void filePrint(file_t* f); // prints the file as a string
|
||||
|
||||
char* fileToString(file_t* f); // returns a string with the file contents
|
||||
|
||||
void fileWriteln(file_t* f, char* line); // appends a given string to the file on a newline
|
||||
void fileWriteln(file_t* f, char* payload); // appends a given string to the file on a newline
|
||||
|
||||
void fileWrite(file_t* f, char* line); // appends a given string to the file (not on a newline!)
|
||||
void fileWrite(file_t* f, char* payload); // appends a given string to the file (not on a newline!)
|
||||
|
||||
void fileClear(file_t* f); // wipes the file contents
|
||||
|
||||
|
||||
Reference in New Issue
Block a user