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

Re: c program : pb with Sparc ?



On Sat, Jan 22, 2000 at 01:00:19AM -0700, Jason Gunthorpe wrote:
> 
> 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. 

Ah, his tabs are making his carets come up in different places depending on
the level of quoting.

-- 
G. Branden Robinson            |     Damnit, we're all going to die; let's
Debian GNU/Linux               |     die doing something *useful*!
branden@ecn.purdue.edu         |     -- Hal Clement, on comments that space
roger.ecn.purdue.edu/~branden/ |        exploration is dangerous

Attachment: pgp5GVSluqvfU.pgp
Description: PGP signature


Reply to: