| Re: [AD] documenting minor return values | 
[ Thread Index | 
Date Index
| More lists.liballeg.org/allegro-developers Archives
] 
On 18 Oct 2001, Vincent Penquerc'h <Vincent.Penquerch@xxxxxxxxxx> wrote:
> > 
> > Does the function set allegro_errno ? If no, maybe it's the way to go.
> 
> This should only be checked once the function setting it returned
> an error, as the standard practice for libcalls is to not zero errno
> if no errors occur.
I guess you would zero errno yourself before calling the function,
then check it afterwards.  I'm pretty sure I've seen that somewhere
before.  Very awkward, but it doesn't break anything.