This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] PR6015, snprintf, glibc2.3 and all that...


On Wed, 2002-04-03 at 15:34, Benjamin Kosnik wrote:
>
> > How exactly they work? I'm not very knowldedgeable about them... They do 
> > not rely on an external libc, right? Do you think it would be possible 
> > to force __builtin_fprintf to use the "C" locale unconditionally? It 
> > would be great!
> 
> I don't know if __builtin_fprintf knows about locales.

There is a big misunderstanding.  __builtin_printf etc don't actually
implemented what they are suggesting by their names.  Instead they are
only names for the compiler to convert

  printf ("hello world\n");

into

  puts ("hello world");

and other tricks like this.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]