Subj : Re: Need to write putchar for embedded system To : comp.lang.c,comp.programming From : pete Date : Fri Jul 08 2005 05:37 pm Jack Klein wrote: > putchar() converts the value it receives to unsigned char, > which cannot be negative, and it returns that unsigned char. putchar(-1) wouldn't return that unsigned char, if sizeof(int) was equal to 1. If putchar(-1) doesn't return EOF, then it returns ((int)(unsigned char)-1). -- pete .