]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Perform conversions straight from the stream buffer instead of scanning
authortjr <tjr@FreeBSD.org>
Sat, 22 May 2004 15:41:03 +0000 (15:41 +0000)
committertjr <tjr@FreeBSD.org>
Sat, 22 May 2004 15:41:03 +0000 (15:41 +0000)
commitac834a03f9eb1ac57dcf4198a93bb236d806f0b2
tree60f061fc81e6e384df239afb039e49b148fa8fdb
parentf5a461b2700c74383086e755fdaed26dc05d848c
Perform conversions straight from the stream buffer instead of scanning
through byte by byte with mbrtowc(). In the usual case (buffer is big
enough to contain the multibyte character, character does not straddle
buffer boundary) this results in only one call to mbrtowc() for each
wide character read.
lib/libc/stdio/fgetwc.c