Is ftstc()'s implementation provided as part of libc? It tests for the presence of a char in stdin/file.