HomeFreeBSD

Implement btowc() in terms of mbrtowc() instead of sgetrune(), and

Description

Implement btowc() in terms of mbrtowc() instead of sgetrune(), and
wctob() in terms of wcrtomb() instead of sputrune(). There should be
no functional differences, but there may be a small performance hit
because we make an extra function call.

The aim here is to have as few functions as possible calling
s{get,put}rune() to make it easier to remove them in the future.

Details

Provenance
Tim J. Robbins <tjr@FreeBSD.org>Authored on Aug 7 2003, 7:45 AM
Parents
rGa50bc30203c4: o Fix cut-n-paste whitespace corruption in previous commit
Branches
Unknown
Tags
Unknown

Event Timeline