]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/towctrans.3
proc.5: Note kernel version for /proc/PID/smaps VmFlags "wf" flag
[thirdparty/man-pages.git] / man3 / towctrans.3
CommitLineData
fea681da
MK
1.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2.\"
89e3ffe9 3.\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
fea681da
MK
4.\" This is free documentation; you can redistribute it and/or
5.\" modify it under the terms of the GNU General Public License as
6.\" published by the Free Software Foundation; either version 2 of
7.\" the License, or (at your option) any later version.
fe382ebf 8.\" %%%LICENSE_END
fea681da
MK
9.\"
10.\" References consulted:
11.\" GNU glibc-2 source code and manual
12.\" Dinkumware C library reference http://www.dinkumware.com/
008f1ecc 13.\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
fea681da
MK
14.\" ISO/IEC 9899:1999
15.\"
460495ca 16.TH TOWCTRANS 3 2015-08-08 "GNU" "Linux Programmer's Manual"
fea681da
MK
17.SH NAME
18towctrans \- wide-character transliteration
19.SH SYNOPSIS
20.nf
21.B #include <wctype.h>
68e4db0a 22.PP
fea681da
MK
23.BI "wint_t towctrans(wint_t " wc ", wctrans_t " desc );
24.fi
25.SH DESCRIPTION
35cfd378
MK
26If
27.I wc
28is a wide character, the
60a90ecd
MK
29.BR towctrans ()
30function
35cfd378
MK
31translates it according to the transliteration descriptor
32.IR desc .
33If
d8a86e74 34.I wc
35cfd378
MK
35is
36.BR WEOF ,
37.B WEOF
38is returned.
fea681da 39.PP
35cfd378
MK
40.I desc
41must be a transliteration descriptor returned by
60a90ecd
MK
42the
43.BR wctrans (3)
44function.
47297adb 45.SH RETURN VALUE
60a90ecd
MK
46The
47.BR towctrans ()
48function returns the translated wide character,
35cfd378 49or
d8a86e74 50.B WEOF
35cfd378
MK
51if
52.I wc
53is
54.BR WEOF .
1c2794e7 55.SH ATTRIBUTES
deb14ced
PH
56For an explanation of the terms used in this section, see
57.BR attributes (7).
58.TS
59allbox;
60lb lb lb
61l l l.
62Interface Attribute Value
63T{
1c2794e7 64.BR towctrans ()
deb14ced
PH
65T} Thread safety MT-Safe
66.TE
47297adb 67.SH CONFORMING TO
7aaf19e7 68POSIX.1-2001, POSIX.1-2008, C99.
fea681da 69.SH NOTES
d9bfdb9c 70The behavior of
60a90ecd 71.BR towctrans ()
1274071a
MK
72depends on the
73.B LC_CTYPE
74category of the
fea681da 75current locale.
47297adb 76.SH SEE ALSO
e37e3282
MK
77.BR towlower (3),
78.BR towupper (3),
79.BR wctrans (3)