diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 19:02:42 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 19:02:42 +0100 |
| commit | 5d37541d63b5c1454dd424eb6f0bc4465629dade (patch) | |
| tree | dd3357a5931da12aace9eebfa7f1b343a3a6f8f7 /README.md | |
| parent | b5575596c187fe6d9143b9e08f5b1068ab01410f (diff) | |
| download | nonstd-5d37541d63b5c1454dd424eb6f0bc4465629dade.tar.gz | |
Cleanup and fixes
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -158,10 +158,11 @@ if (content) { FREE(content); // Standard free (unless using arena) } -// Or read directly into a string view or builder -stringv file_sv = read_entire_file_sv("config.ini"); -// ... use file_sv ... -FREE((void*)file_sv.data); // Note: read_entire_file_sv allocates the data +// Or read directly into a string builder +stringb file_sb = read_entire_file_sb("config.ini"); +// ... use file_sb ... +sb_free(&file_sb); + ``` ## Testing |
