diff th_string.h @ 228:ca9cd98dbcff

Initial work on printf() style function family implementation.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 16 Feb 2016 13:59:51 +0200
parents 099a1a156fd7
children d480cee946de
line wrap: on
line diff
--- a/th_string.h	Tue Feb 16 12:02:17 2016 +0200
+++ b/th_string.h	Tue Feb 16 13:59:51 2016 +0200
@@ -60,6 +60,13 @@
 char    *th_strrcasecmp(char *haystack, const char *needle);
 void    th_strip_ctrlchars(char *str);
 
+int     th_vprintf_do(void *ctx, int (*vputch)(void *ctx, const char ch), const char *fmt, va_list ap);
+int     th_vsnprintf(char *buf, size_t size, const char *fmt, va_list ap);
+int     th_snprintf(char *buf, size_t size, const char *fmt, ...);
+int     th_vfprintf(FILE *fh, const char *fmt, va_list ap);
+int     th_fprintf(FILE *fh, const char *fmt, ...);
+
+
 char    *th_strdup_vprintf(const char *fmt, va_list ap);
 char    *th_strdup_printf(const char *fmt, ...);