aboutsummaryrefslogtreecommitdiffstats
path: root/src/file.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-05-09 22:25:30 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-05-09 22:25:30 -0300
commit15d3beecdd227c08df600336dff9ecd2d5979136 (patch)
tree14601d06e48a8dc20cc60a19f6d978ee4ac13dd5 /src/file.c
parent0cb80d3050de4adb65b6c4acb4c9ac765b2ae448 (diff)
downloadblogc-15d3beecdd227c08df600336dff9ecd2d5979136.tar.gz
blogc-15d3beecdd227c08df600336dff9ecd2d5979136.tar.bz2
blogc-15d3beecdd227c08df600336dff9ecd2d5979136.zip
fixing gcc stupidity
Diffstat (limited to 'src/file.c')
-rw-r--r--src/file.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/file.c b/src/file.c
index 7648340..5839949 100644
--- a/src/file.c
+++ b/src/file.c
@@ -48,3 +48,14 @@ blogc_file_get_contents(const char *path, size_t *len, blogc_error_t **err)
fclose(fp);
return b_string_free(str, false);
}
+
+
+int
+blogc_fprintf(FILE *stream, const char *format, ...)
+{
+ va_list ap;
+ va_start(ap, format);
+ int rv = vfprintf(stream, format, ap);
+ va_end(ap);
+ return rv;
+}