diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2020-09-16 20:38:58 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2020-09-16 20:38:58 -0700 |
| commit | f35d3c98b22ac3c708672493d27267de071989cd (patch) | |
| tree | 6f49833558ec448768f5c90193d35b7d40c81664 /file_loader.h | |
| parent | 6c237850e90dce317ede7b0d4e53125df15ab62b (diff) | |
Added tons of file and line number stuff
Diffstat (limited to 'file_loader.h')
| -rw-r--r-- | file_loader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/file_loader.h b/file_loader.h index cb49373..37399ae 100644 --- a/file_loader.h +++ b/file_loader.h @@ -16,6 +16,7 @@ typedef struct { file_t *load_file(const char *filename); void destroy_file(file_t **f); size_t get_line_number(file_t *f, const char *p); +size_t get_char_number(file_t *f, const char *p); const char *get_line(file_t *f, size_t line_number); void fprint_line(FILE *dest, file_t *f, const char *start, const char *end, const char *msg); |
