BTW: Anybody know if ANSI permit the same source/target ptrs in sprintf()?
I presume everyone's gut feeling is that it would not, and that is indeed the case:
ISO C90, 7.9.6.5: "The sprintf function is equivalent to fprintf, except that the [first argument] specifies an array into which the generated output is to be written [...] If copying takes place between objects that overlap, the behavior is undefined."
(And similarly in C99, section 7.19.6.6.)
John
(PS for other language lawyers: I don't think it's astoundingly clear what "copying" means in this context, but the intent is pretty clear.)
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
