This is the mail archive of the
mailing list for the libstdc++ project.
[RFC] Strftime return value when S is a null pointer
- From: Paolo Carlini <pcarlini at suse dot de>
- To: libc-alpha at sources dot redhat dot com
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Fri, 20 Aug 2004 17:49:22 +0200
- Subject: [RFC] Strftime return value when S is a null pointer
I'm working on a libstdc++-v3 problem report. In order to fix it
properly, I must
be sure about the value returned by strftime when S is a null pointer.
according to the glibc docs
"If S is a null pointer, `strftime' does not actually write
anything, but instead returns the number of characters it would
and this is rather nice (not nice as snprintf, but, anyway). The problem
is that I
cannot find in C99 anything *mandating* this specific behavior.
Is it a glibc specific feature? In case, as far as glibc is concerned,
can we rely upon
it for all the recent, current (and, likely, future) releases?
Thanks in advance,