view lib/fprintftime.h @ 6819:3449832bdc37

* getdate.y (__attribute__): Don't define if already defined. Problem reported by Larry Jones. * utimens.c (__attribute__): Likewise.
author Paul Eggert <eggert@cs.ucla.edu>
date Sun, 11 Jun 2006 07:12:27 +0000
parents 6a800a02bf4c
children 43e3888c56c4
line wrap: on
line source

#include <stdio.h>
#include <time.h>

/* 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);