avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] [RFC] Joerg's new vsprint functions.


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] [RFC] Joerg's new vsprint functions.
Date: Wed, 19 Nov 2003 23:28:06 +0100
User-agent: Mutt/1.2.5i

As Theodore A. Roth wrote:

> A similar problem has been noted for printf() and printf_P() in bug
> #6141.
> 
> It looks like we need to add quite a few sanity checks. :-(

I'm not sure whether we do want sanity checks at all.  After all, this
is all pilot errors (people forgetting to check whether their buffers
or FILE * are NULL), but by adding sanity checks, a penalty will be
imposed on anyone using these functions, including those who used it
correctly.

Unfortunately, I didn't find any conclusion in the C standard whether
the behaviour in these situations might be implementation-defined or
undefined.  Maybe ask in comp.lang.c?
-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]