diff options
author | Mattias Andrée <maandree@kth.se> | 2018-11-06 20:32:42 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2018-11-06 20:32:42 +0100 |
commit | 0335a7cf215f1c5cba9ae8a49b3dbd1b980a20b1 (patch) | |
tree | e87a3444037b27f7a2743ea84e7af1d9ef50c1bf /test.h | |
parent | Add tests for mem[p]setelem and add man pages for libsimple_default_failure_exit (diff) | |
download | libsimple-0335a7cf215f1c5cba9ae8a49b3dbd1b980a20b1.tar.gz libsimple-0335a7cf215f1c5cba9ae8a49b3dbd1b980a20b1.tar.bz2 libsimple-0335a7cf215f1c5cba9ae8a49b3dbd1b980a20b1.tar.xz |
Add libsimple_eprintf_preprint and libsimple_eprintf_postprint
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'test.h')
-rw-r--r-- | test.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -83,3 +83,15 @@ size_t get_pagesize(void); size_t round_up(size_t); int have_custom_malloc(void); /* return 0 if run under valgrind(1) */ struct allocinfo *get_allocinfo(void *); + + +int test_vfprintf(FILE *restrict stream, const char *restrict format, va_list ap); + +static inline int +test_fprintf(FILE *restrict stream, const char *restrict format, ...) +{ + va_list ap; + va_start(ap, format); + return test_vfprintf(stream, format, ap); + va_end(ap); +} |