Re: [AD] pack_put* clarification (Modificato da Angelo Mottola)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Monday 12 July 2004 12:25, Angelo Mottola wrote:
> The Allegro docs state pack_putc() returns 0 on success or EOF on 
> failure. But examining the _sort_out_putc() function in file.c I 
> discovered this is not true... pack_putc() actually returns the 
> character written on success, which is obviously != 0.
> So what's wrong, the docs or the function?

The docs are wrong. The pack_put* functions are supposed to behave like 
their normal libc counterparts, which according to the man page " return 
the character written as an unsigned char cast to an int or EOF on error."

Evert





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/