cvs commit: src/lib/libc/stdio fgetwc.c

Tim J. Robbins tjr at FreeBSD.org
Sat May 22 08:41:53 PDT 2004


tjr         2004/05/22 08:41:03 PDT

  FreeBSD src repository

  Modified files:
    lib/libc/stdio       fgetwc.c 
  Log:
  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.
  
  Revision  Changes    Path
  1.10      +19 -18    src/lib/libc/stdio/fgetwc.c


More information about the cvs-all mailing list