GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  WCTOB (3)

NAME

btowc, wctob - convert between wide and single-byte characters

CONTENTS

Library
Synopsis
Description
See Also
Standards
History

LIBRARY


.Lb libc

SYNOPSIS


.In wchar.h wint_t btowc int c int wctob wint_t c
.In wchar.h
.In xlocale.h wint_t btowc_l int c locale_t loc int wctob_l wint_t c locale_t loc

DESCRIPTION

The btowc function converts a single-byte character into a corresponding wide character. If the character is EOF or not valid in the initial shift state, btowc returns WEOF.

The wctob function converts a wide character into a corresponding single-byte character. If the wide character is WEOF or not able to be represented as a single byte in the initial shift state, wctob returns EOF.

The _l-suffixed versions take an explicit locale argument, while the non-suffixed versions use the current global or per-thread locale.

SEE ALSO

mbrtowc(3), multibyte(3), wcrtomb(3)

STANDARDS

The btowc and wctob functions conform to -p1003.1-2001.

HISTORY

The btowc and wctob functions first appeared in
.Fx 5.0 .
Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.