Manpage of 'cftime' on UHLU - BSD System Documentation,
Programming Reference, Manual Pages and Source Code
All manual pages         All RFC pages
Common page
for cftime
Other pages
for cftime
More pages
containing cftime

Section 3 manual page or howto for 'cftime'  

CFTIME(3)	       FreeBSD Library Functions Manual 	     CFTIME(3)

NAME
     cftime, ascftime -- convert date and time to string

LIBRARY
     Compatibility Library (libcompat, -lcompat)

SYNOPSIS
     #include <time.h>

     int
     cftime(char *s, char *format, const time_t *clock);

     int
     ascftime(char *s, const char *format, const struct tm *tmptr);

DESCRIPTION
     The cftime() and ascftime() functions are made obsolete by strftime(3).

     Use of the functions cftime() and ascftime() is strongly deprecated,
     since there is no way to check for a buffer overflow condition.  Use
     strftime(3) instead.

     The ascftime() function is almost identical to strftime(3), with the only
     exception that there is no parameter to tell about the maximal buffer
     length, and the format parameter defaults to ``%C'' if a NULL pointer is
     given.

     The cftime() function does the same job, but it first invokes
     localtime(3) in order to convert the given clock, then also performs the
     conversions as requested by the format argument.

RETURN VALUES
     The cftime() and ascftime() functions return the number of characters
     written to the output buffer s, not counting the trailing null character.

SEE ALSO
     localtime(3), strftime(3)

FreeBSD 7.2			 June 15, 1993			   FreeBSD 7.2

NAME - LIBRARY - SYNOPSIS - DESCRIPTION - RETURN VALUES - SEE ALSO -  
All manual pages         All RFC pages
Common page
for cftime
Other pages
for cftime
More pages
containing cftime
A random manual page         All manual pages        All RFC pages