undef getc to avoid collision