from coreutils
[gnulib.git] / lib / fprintftime.h
1 #include <stdio.h>
2 #include <time.h>
3
4 /* A cross between fprintf and nstrftime, that prints directly
5    to the output stream, without the need for the potentially
6    large buffer that nstrftime would require.
7
8    Output to stream FP the result of formatting (according to the
9    nstrftime format string, FMT) the time data, *TM, and the UTC
10    and NANOSECONDS values.  */
11 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
12                     int utc, int nanoseconds);