From ab526003e4d96ff963448f05c6809febb0475a5b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 16 Sep 2005 07:01:00 +0000 Subject: *** empty log message *** --- lib/fprintftime.c | 5 +++++ lib/fprintftime.h | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 lib/fprintftime.c create mode 100644 lib/fprintftime.h (limited to 'lib') diff --git a/lib/fprintftime.c b/lib/fprintftime.c new file mode 100644 index 000000000..9e236a117 --- /dev/null +++ b/lib/fprintftime.c @@ -0,0 +1,5 @@ +#include "config.h" + +#include "fprintftime.h" +#define FPRINTFTIME 1 +#include "strftime.c" diff --git a/lib/fprintftime.h b/lib/fprintftime.h new file mode 100644 index 000000000..38fef43f1 --- /dev/null +++ b/lib/fprintftime.h @@ -0,0 +1,12 @@ +#include +#include + +/* A cross between fprintf and nstrftime, that prints directly + to the output stream, without the need for the potentially + large buffer that nstrftime would require. + + Output to stream FP the result of formatting (according to the + nstrftime format string, FMT) the time data, *TM, and the UTC + and NANOSECONDS values. */ +size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm, + int utc, int nanoseconds); -- cgit v1.2.3-70-g09d2