3 ms·
getchar() returns an int to accommodate 257 different values: all byte chars + EOF (typically -1). The code snippet itself is run length encoding with 0xff as
by varjag 8y ago
getchar() returns an int to accommodate 257 different values: all byte chars + EOF (typically -1).
The code snippet itself is run length encoding with 0xff as an escape.