rebuilding fixincludes - good news, bad news and RFE

Mike Stump
Tue Apr 6 10:31:00 GMT 1999

> Date: 6 Apr 1999 14:31:03 -0000
> From:

> The reason is that all sprintf functions require that you know the
> number of arguments at compile time.

False.  vsprintf doesn't need to know.

> AutoGen does not know this at compile time.

conclusion, it should use vsprintf.  It is almost portable (it appears
in libiberty).

> I have a total re-implementation of sprintf that uses an argv style
> list of arguments to the format.

Wow, talk about reinventing the wheel.  Well, you should make it
conform to vsprintf, and put it in libiberty, if your version is truly
better than Per's version.

More information about the Gcc-bugs mailing list