comparison mupdf-source/thirdparty/extract/src/mem.h @ 3:2c135c81b16c

MERGE: upstream PyMuPDF 1.26.4 with MuPDF 1.26.7
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:44:09 +0200
parents b50eed0cc0ef
children
comparison
equal deleted inserted replaced
0:6015a75abc2d 3:2c135c81b16c
1 #ifndef EXTRACT_MEM_H
2 #define EXTRACT_MEM_H
3
4 #include "extract/alloc.h"
5
6 #include <stdarg.h>
7 #include <string.h>
8
9 void extract_bzero(void *b, size_t len);
10
11 int extract_vasprintf(extract_alloc_t* alloc, char** out, const char* format, va_list va)
12 #ifdef __GNUC__
13 __attribute__ ((format (printf, 3, 0)))
14 #endif
15 ;
16
17 int extract_asprintf(extract_alloc_t* alloc, char** out, const char* format, ...)
18 #ifdef __GNUC__
19 __attribute__ ((format (printf, 3, 4)))
20 #endif
21 ;
22
23 int extract_strdup(extract_alloc_t* alloc, const char* s, char** o_out);
24
25 #endif