diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-05-09 22:25:30 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-05-09 22:25:30 -0300 |
commit | 15d3beecdd227c08df600336dff9ecd2d5979136 (patch) | |
tree | 14601d06e48a8dc20cc60a19f6d978ee4ac13dd5 /src/file.c | |
parent | 0cb80d3050de4adb65b6c4acb4c9ac765b2ae448 (diff) | |
download | blogc-15d3beecdd227c08df600336dff9ecd2d5979136.tar.gz blogc-15d3beecdd227c08df600336dff9ecd2d5979136.tar.bz2 blogc-15d3beecdd227c08df600336dff9ecd2d5979136.zip |
fixing gcc stupidity
Diffstat (limited to 'src/file.c')
-rw-r--r-- | src/file.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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; +} |