Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Mar 1995 20:22:35 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-bugs@FreeBSD.org (FreeBSD bugs list)
Subject:   Re: format %s missing in strftime
Message-ID:  <199503021922.UAA21488@uriah.heep.sax.de>
In-Reply-To: <199503020949.KAA10065@labinfo.iet.unipi.it> from "Luigi Rizzo" at Mar 2, 95 10:49:15 am

next in thread | previous in thread | raw e-mail | index | archive | help
As Luigi Rizzo wrote:
> 
> > %s is not standardized by ANSI.  Nevertheless, we've got it in
> > 1.1.5.1, so i've added it.
> 
> Is there any alternative, standardized way to get the same output ?

[Btw., %s has already been described in our man page, so i assume
it has been forgotten some way.]

I'm afraid, there's no standardized way.  Remember, ANSI C cannot
provide such, since it has to be platform-independent.  There is no
platform-independent idea of an ``Epoch''.

I've checked either DG/UX as IRIX, they both don't grok %s.  Since the
standard does not say anything about undefined control sequences, it's
acceptable to imply ``private'' semantics (we've already got a bunch
more of them, see the ``kitchen sink'' comment in the source :-).

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503021922.UAA21488>