diff options
| author | Jeffrey Armstrong <jeffrey.armstrong@approximatrix.com> | 2015-10-05 08:38:46 -0400 |
|---|---|---|
| committer | Jeffrey Armstrong <jeffrey.armstrong@approximatrix.com> | 2015-10-05 08:38:46 -0400 |
| commit | 99cf9c4dc5855b1f5f26d00267fdbbe672ee27a7 (patch) | |
| tree | 83a11a0dc0f87198e251ca7ec19504aeec152bc1 /f_printf.c | |
| download | foslib-99cf9c4dc5855b1f5f26d00267fdbbe672ee27a7.tar.gz foslib-99cf9c4dc5855b1f5f26d00267fdbbe672ee27a7.zip | |
Diffstat (limited to 'f_printf.c')
| -rw-r--r-- | f_printf.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/f_printf.c b/f_printf.c new file mode 100644 index 0000000..16fb56c --- /dev/null +++ b/f_printf.c @@ -0,0 +1,18 @@ +#include "fossil.h"
+#include <stdio.h>
+#include <stdarg.h>
+
+int cdecl F_Printf( char *fmt,...)
+{
+ int val;
+ va_list marker;
+ static char buffer[512];
+ va_start(marker, fmt);
+ val = vsprintf(buffer, fmt, marker);
+ va_end(marker);
+ if (!F_Puts(buffer))
+ {
+ return (FALSE);
+ }
+ return(val);
+}
|
