diff options
author | Mattias Andrée <m@maandree.se> | 2024-10-13 11:17:48 +0200 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2024-10-13 11:17:48 +0200 |
commit | a81c96c0348af8caf6ae45e2d942a676792a2a31 (patch) | |
tree | 24cc725efa3eba381c98ebed7cb2cbf7e0e34f0c /libparsepcf_preparse_font.c | |
parent | Update e-mail (diff) | |
download | libparsepcf-a81c96c0348af8caf6ae45e2d942a676792a2a31.tar.gz libparsepcf-a81c96c0348af8caf6ae45e2d942a676792a2a31.tar.bz2 libparsepcf-a81c96c0348af8caf6ae45e2d942a676792a2a31.tar.xz |
Documentation and minor improvements
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r-- | libparsepcf_preparse_font.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libparsepcf_preparse_font.c b/libparsepcf_preparse_font.c index 058365a..63c245e 100644 --- a/libparsepcf_preparse_font.c +++ b/libparsepcf_preparse_font.c @@ -3,11 +3,13 @@ int -libparsepcf_preparse_font(const char *file, size_t size, struct libparsepcf_font *font) +libparsepcf_preparse_font(const void *file, size_t size, struct libparsepcf_font *font) { size_t min = SIZE_MAX, max = 0, table_i, table_n; struct libparsepcf_table *tables = NULL; + *font = (struct libparsepcf_font){0}; + if (libparsepcf_get_table_count(file, size, &table_n)) goto fail; tables = calloc(table_n, sizeof(*tables)); |