On Sun, Nov 02, 2003 at 09:11:34PM +0000, Brian Candler wrote:
> and the problem is that putchar(255) is returning EOF (-1) instead of 255.
> Stupid Solaris. So, this function needs rewriting without using putchar.

Can you also compile and run the attached program and post its response here
just to confirm the diagnosis (or else we can dig a bit deeper to try and
find the actual problem)

Thanks,

Brian.
/* Compile and run as:
 *    gcc -Wall -o testprog testprog.c
 *    ./testprog >/dev/null
 */

#include <stdio.h>

int main(void)
{
        int res = putchar(255);
        fprintf(stderr, "The result is %d\n", res);
        return 0;
}

Reply via email to