[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: c program : pb with Sparc ?



On Sat, 22 Jan 2000, Branden Robinson wrote:

> On Fri, Jan 21, 2000 at 06:39:21PM +0100, Thierry Laronde wrote:
> > > 		strftime(NULL, size_format, strftime_format, local_time))== 0) {
> >                  ^^^^
> > the problem is here : this is a "GNUism", this is not POSIX defined. So the
> > problem is not on Sparc, or SunOS, but on the POSIX compliance. 
> > This is corrected and this works absolutely fine :)
 
> What?  strftime is defined in POSIX.1.

And POSIX doesn't say you can pass NULL into the first parameter and have
it allocate on the fly form you. 

Jason



Reply to: