Call __sgetc() directly in getchar() instead of taking an expensive
detour through getc().
This commit is contained in:
parent
5c5c7982be
commit
2df1baf643
@ -57,7 +57,7 @@ getchar()
|
||||
int retval;
|
||||
FLOCKFILE(stdin);
|
||||
ORIENT(stdin, -1);
|
||||
retval = getc(stdin);
|
||||
retval = __sgetc(stdin);
|
||||
FUNLOCKFILE(stdin);
|
||||
return (retval);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user