file.h | raw changeset files shortlog |
1.1 --- a/file.h Sat Mar 13 17:49:23 2021 +0100 1.2 +++ b/file.h Sat Mar 13 22:38:33 2021 +0100 1.3 @@ -65,6 +65,11 @@ 1.4 offset_t file_populated_span(file_t *file); 1.5 offset_t file_span(file_t *file); 1.6 1.7 +/* Convenience functions. */ 1.8 + 1.9 +char *file_string_get(file_t *file, offset_t offset); 1.10 +offset_t file_string_set(file_t *file, const char *data, offset_t offset); 1.11 + 1.12 EXTERN_C_END 1.13 1.14 // vim: tabstop=2 expandtab shiftwidth=2