Actual implementation of EOF different from -1
问题 POSIX defines EOF as a macro expanding to a negative value: The header shall define the following macro which shall expand to an integer constant expression with type int and a negative value: EOF End-of-file return value. In every implementation I could find, EOF is always defined as -1 . Although the standard does allow for different values, I could not find any specific implementation where that happens, and I'd like to find one for testing purposes. 1 1 I could make my own implementation,