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

Tim J. Robbins tjr at FreeBSD.org
Tue Nov 4 03:05:56 PST 2003


tjr         2003/11/04 03:05:55 PST

  FreeBSD src repository

  Modified files:
    lib/libc/stdio       fgetwc.c fputwc.c ungetwc.c 
  Log:
  Pass mbrtowc() and wcrtomb() NULL instead of a pointer to a freshly zeroed
  mbstate_t object that they ignore. The zeroing is fairly expensive, and it
  will never be necessary in these functions; when we support state-dependent
  encodings, we will pass in a pointer to the file's mbstate_t object, and
  only zero it at the time the file gets opened.
  
  Revision  Changes    Path
  1.7       +1 -3      src/lib/libc/stdio/fgetwc.c
  1.7       +1 -3      src/lib/libc/stdio/fputwc.c
  1.6       +1 -3      src/lib/libc/stdio/ungetwc.c


More information about the cvs-src mailing list