Mercurial > hg > octave-kai > gnulib-hg
annotate lib/fprintftime.h @ 6495:6a800a02bf4c
from coreutils
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Fri, 16 Dec 2005 15:06:54 +0000 |
parents | |
children | 43e3888c56c4 |
rev | line source |
---|---|
6495 | 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); |