diff options
| author | ame <[email protected]> | 2024-02-22 10:17:40 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2024-02-22 10:17:40 -0600 |
| commit | 149d594012b32158cd5e29f484cf0274dde6af44 (patch) | |
| tree | f252e0c821a3c2cce56dd3180ea1c70fccd48d5a /src/io.c | |
| parent | b38fb544a43f161006924c055e12b2a1d9cf63f5 (diff) | |
cleaning and switch to parray_t
Diffstat (limited to 'src/io.c')
| -rw-r--r-- | src/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ #include <unistd.h> -#include "i_str.h" +#include "types/str.h" #include "io.h" #include "stdlib.h" #include "stdio.h" @@ -30,7 +30,7 @@ int l_readfile(lua_State* L){ char* out = calloc(sz + 1, sizeof * out); fread(out, sizeof * out, sz, fp); - + lua_pushlstring(L, out, sz); fclose(fp); |
