getc() returns an int, not a char. There is no reason any such program should only work on text files. That is what started the flaming in the first place.