[PHP-DEV] Difference between sprintf, snprintf and spprintf

2002-06-22 Thread Marcus Boerger
Proposal comment for spprintf/snprintf header. When nobody objects i commit this to spprintf.h and make a notice in snprintf.h. /* Comparing: sprintf, snprintf, spprintf sprintf offers the ability to make a lot of falures since it does not know the size of the buffer it uses.

Re: [PHP-DEV] Difference between sprintf, snprintf and spprintf

2002-06-22 Thread Sterling Hughes
Why? If you're commiting code you should know how to use these basic functions... besides, sprintf is not really all that bad... -Sterling Proposal comment for spprintf/snprintf header. When nobody objects i commit this to spprintf.h and make a notice in snprintf.h. /* Comparing:

Re: [PHP-DEV] Difference between sprintf, snprintf and spprintf

2002-06-22 Thread Marcus Börger
Idea was that most people are not aware of spprintf and do not know the difference. So Markus and me thought about adding such a note. marcus At 23:44 22.06.2002, Sterling Hughes wrote: Why? If you're commiting code you should know how to use these basic functions... besides, sprintf is

Re: [PHP-DEV] Difference between sprintf, snprintf and spprintf

2002-06-22 Thread Andi Gutmans
I don't think adding a note is a bad idea. Andi At 04:44 PM 6/22/2002 -0500, Sterling Hughes wrote: Why? If you're commiting code you should know how to use these basic functions... besides, sprintf is not really all that bad... -Sterling Proposal comment for spprintf/snprintf header.