getc() implemented