blob: 8eb1e2bdcb2bb71a96809b5ae4ed1ec07f521137 [file]
<html lang="en">
<head>
<title>wctrans - Untitled</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Untitled">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Ctype.html#Ctype" title="Ctype">
<link rel="prev" href="towctrans.html#towctrans" title="towctrans">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<a name="wctrans"></a>
<p>
Previous:&nbsp;<a rel="previous" accesskey="p" href="towctrans.html#towctrans">towctrans</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Ctype.html#Ctype">Ctype</a>
<hr>
</div>
<h3 class="section">3.32 <code>wctrans</code>&mdash;get wide-character translation type</h3>
<p><a name="index-wctrans-144"></a><strong>Synopsis</strong>
<pre class="example"> #include &lt;wctype.h&gt;
wctrans_t wctrans(const char *<var>c</var>);
</pre>
<p><strong>Description</strong><br>
<code>wctrans</code> is a function which takes a string <var>c</var> and gives back
the appropriate wctrans_t type value associated with the string,
if one exists. The following values are guaranteed to be recognized:
"tolower" and "toupper".
<p><br>
<strong>Returns</strong><br>
<code>wctrans</code> returns 0 and sets <code>errno</code> to <code>EINVAL</code> if the
given name is invalid. Otherwise, it returns a valid non-zero wctrans_t
value.
<p><br>
<strong>Portability</strong><br>
<code>wctrans</code> is C99.
<p>No supporting OS subroutines are required.
<p><br>
</body></html>