*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> cftime (3)              
Title
Content
Arch
Section
 

CFTIME(3)

Contents


NAME    [Toc]    [Back]

     cftime, ascftime -- convert date and time to string

LIBRARY    [Toc]    [Back]

     Compatibility Library (libcompat, -lcompat)

SYNOPSIS    [Toc]    [Back]

     #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    [Toc]    [Back]

     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's 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    [Toc]    [Back]

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

SEE ALSO    [Toc]    [Back]

      
      
     localtime(3), strftime(3)


FreeBSD 5.2.1			 June 15, 1993			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
strftime Tru64 Convert a date and time to a string
wcsftime Tru64 Convert a date and time to a string
getdate_r Tru64 Convert formatted string into time/date structure
wcsftime IRIX convert date and time to wide character string
wcsftime FreeBSD convert date and time to a wide-character string
getdate Tru64 Convert formatted string into time/date structure
asctime_r NetBSD convert date and time to ASCII
ctime NetBSD convert date and time to ASCII
gmtime_r NetBSD convert date and time to ASCII
asctime NetBSD convert date and time to ASCII
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service