aboutsummaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-11-06 20:32:42 +0100
committerMattias Andrée <maandree@kth.se>2018-11-06 20:32:42 +0100
commit0335a7cf215f1c5cba9ae8a49b3dbd1b980a20b1 (patch)
treee87a3444037b27f7a2743ea84e7af1d9ef50c1bf /test.c
parentAdd tests for mem[p]setelem and add man pages for libsimple_default_failure_exit (diff)
downloadlibsimple-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.c')
-rw-r--r--test.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test.c b/test.c
index 80b7ad7..f785483 100644
--- a/test.c
+++ b/test.c
@@ -294,6 +294,13 @@ fprintf(FILE *restrict stream, const char *restrict format, ...)
int
vfprintf(FILE *restrict stream, const char *restrict format, va_list ap)
{
+ return test_vfprintf(stream, format, ap);
+}
+
+
+int
+test_vfprintf(FILE *restrict stream, const char *restrict format, va_list ap)
+{
size_t old_alloc_fail_in = alloc_fail_in;
va_list ap2;
int r;