Matt Dillon wrote:
> :I don't agree with that, since the other functions return the number of
> :characters printed as well.
> Yes, but not portably. The ANSI standard tried to standardize it but
> the reality is that only snprintf()'s return value is portable. If you
> try to use the return value from other functions as a count, your code
> won't be portable. asprintf() *might* be portable too, but nothing else.
Oh hell. In that case I'll probably just make the paragraph about
snprintf's return value clearer and not touch anything else.
Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message