1BTOWC(3P)                  POSIX Programmer's Manual                 BTOWC(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       btowc - single byte to wide character conversion
13

SYNOPSIS

15       #include <stdio.h>
16       #include <wchar.h>
17
18       wint_t btowc(int c);
19
20

DESCRIPTION

22       The btowc() function shall determine  whether  c  constitutes  a  valid
23       (one-byte) character in the initial shift state.
24
25       The  behavior  of this function shall be affected by the LC_CTYPE cate‐
26       gory of the current locale.
27

RETURN VALUE

29       The btowc() function shall return WEOF if c has the  value  EOF  or  if
30       (unsigned  char)  c does not constitute a valid (one-byte) character in
31       the initial shift state.  Otherwise, it shall return the wide-character
32       representation of that character.
33

ERRORS

35       No errors are defined.
36
37       The following sections are informative.
38

EXAMPLES

40       None.
41

APPLICATION USAGE

43       None.
44

RATIONALE

46       None.
47

FUTURE DIRECTIONS

49       None.
50

SEE ALSO

52       wctob(), the Base Definitions volume of IEEE Std 1003.1-2001, <wchar.h>
53
55       Portions  of  this text are reprinted and reproduced in electronic form
56       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
57       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
58       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
59       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
60       event of any discrepancy between this version and the original IEEE and
61       The  Open Group Standard, the original IEEE and The Open Group Standard
62       is the referee document. The original Standard can be  obtained  online
63       at http://www.opengroup.org/unix/online.html .
64
65
66
67IEEE/The Open Group                  2003                            BTOWC(3P)
Impressum