Print

Print


Hi Heinz,

  after double checking, it seems that on all platforms currently
supported by ROOT there is strdup() available, so you can ignore my
comment. The function that remain unsupported on several platforms is
strcasecmp().

Cheers, Fons.


On Fri, 2004-08-20 at 14:23, Heinz Stockinger wrote:
> Hi Fonds,
> 
> Interesting point.
> Do you by chance have a list of C/C++ classes, methods etc. that you
> recommend to use in ROOT for maximum portability on all your supported
> platforms?
> 
> Looking into the latest POSIX standard (IEEE Std 1003.1, 2004 Edition),
> seems that strdup is already there (or at least mentioned). Can it be that
> it was added later since gcc 3.2.3 (and Solaris) does _not_ mention POSIX
> compliance as you say.
> 
> Thanks,
> Heinz
> 
> On Fri, 20 Aug 2004, Fons Rademakers wrote:
> 
> > Hi Andy,
> >
> >   for portability, be aware that strdup() is not a POSIX function and
> > not 100% portable. Adding your own xstrdup() is trivial however.
> >
> > Cheers, Fons.
> >
> >
> >
> > On Fri, 2004-08-20 at 09:02, Andrew Hanushevsky wrote:
> > > Hi Grogory,
> > >
> > > > At the risk of being a little annoying, Chris Jones and I bumped into a
> > > > few more bugs/nits.
> > > Frankly, I am very happy that you have taken the time to review the code
> > > and point out problems. In fact, your comments about commanding a char
> > > pointer uncovered several problems. All of your suggestions have been
> > > incorporated in the latest release. If you see any other problems, please
> > > tell us so that they can get fixed!
> > >
> > > Andy
> > --
> > Org:    CERN, European Laboratory for Particle Physics.
> > Mail:   1211 Geneve 23, Switzerland
> > E-Mail: [log in to unmask]              Phone: +41 22 7679248
> > WWW:    http://www.rademakers.org/fons/      Fax:   +41 22 7679480
> >
> >
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: [log in to unmask]              Phone: +41 22 7679248
WWW:    http://www.rademakers.org/fons/      Fax:   +41 22 7679480