It feels like I'm drowning in a glass of water...
Am I missing something or according to the standard does this have undefined behaviour when working with non ASCII chars?
fgetc reads the next character in the the stream as an unsigned char... Hence the return value will be out of the char range, and I believe that for signed types this is undefined behaviour.Code://... int i = fgetc(pf); char c = i; //...
Some clarification as to how the signed and unsigned representation for characters should be used together would be most welcomed.



LinkBack URL
About LinkBacks
. 


