This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Use __snprintf when available
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: pcarlini at unitus dot it
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Wed, 20 Mar 2002 12:28:24 -0800 (PST)
- Subject: Re: [PATCH] Use __snprintf when available
> >> 2- Autoconf issues, which seem to me really of two different kinds:
> >>
> >> * Are there any actual systems which make available a C99-conforming
> >> snprintf but which do not pass the tests for _GLIBCPP_USE_C99 enabled?
> >> I think Loren in principle is interested in supporting them.
> >
> >I think HP-UX 11.0 (IA64 and PA) fits this situation.
>
> Hummm. Honestly I disagree.
OK, HP-UX snprintf is not C99 conforming so it does not fit this
catagory, I see that now. It looks like the patch does the right thing
for HP-UX (using sprintf instead of snprintf) and gets rid of the
annoying strtoll/strtoull calls that started this whole mess so I think
that it is fine for me the way it is and will fix HP-UX.
Once it is checked in I'll submit a patch to get rid of the HP-UX
definitions of strtoll/strtoull in config/os/hpux/bits/os_defines.h
which should no longer be needed.
Steve Ellcey
sje@cup.hp.com