This commit is contained in:
2023-07-22 19:15:11 +10:00
parent 5e98df9846
commit 744b74aed2

View File

@@ -5,6 +5,8 @@ This header provides a number of tools for compiling and running Toy, and is use
This is not a core part of Toy or a library, and as such `repl_tools.h` and `repl_tools.c` can both be found in the `repl/` folder.
## Defined Functions
### const char* Toy_readFile(const char* path, size_t* fileSize)
This function reads in a file, and returns it as a constant buffer. It also sets the variable pointed to by `fileSize` to the size of the given buffer.