1<html lang="en"> 2<head> 3<title>wctrans - Untitled</title> 4<meta http-equiv="Content-Type" content="text/html"> 5<meta name="description" content="Untitled"> 6<meta name="generator" content="makeinfo 4.13"> 7<link title="Top" rel="start" href="index.html#Top"> 8<link rel="up" href="Ctype.html#Ctype" title="Ctype"> 9<link rel="prev" href="towctrans.html#towctrans" title="towctrans"> 10<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> 11<meta http-equiv="Content-Style-Type" content="text/css"> 12<style type="text/css"><!-- 13 pre.display { font-family:inherit } 14 pre.format { font-family:inherit } 15 pre.smalldisplay { font-family:inherit; font-size:smaller } 16 pre.smallformat { font-family:inherit; font-size:smaller } 17 pre.smallexample { font-size:smaller } 18 pre.smalllisp { font-size:smaller } 19 span.sc { font-variant:small-caps } 20 span.roman { font-family:serif; font-weight:normal; } 21 span.sansserif { font-family:sans-serif; font-weight:normal; } 22--></style> 23<link rel="stylesheet" type="text/css" href="../cs.css"> 24</head> 25<body> 26<div class="node"> 27<a name="wctrans"></a> 28<p> 29Previous: <a rel="previous" accesskey="p" href="towctrans.html#towctrans">towctrans</a>, 30Up: <a rel="up" accesskey="u" href="Ctype.html#Ctype">Ctype</a> 31<hr> 32</div> 33 34<h3 class="section">3.32 <code>wctrans</code>—get wide-character translation type</h3> 35 36<p><a name="index-wctrans-144"></a><strong>Synopsis</strong> 37<pre class="example"> #include <wctype.h> 38 wctrans_t wctrans(const char *<var>c</var>); 39 40</pre> 41 <p><strong>Description</strong><br> 42<code>wctrans</code> is a function which takes a string <var>c</var> and gives back 43the appropriate wctrans_t type value associated with the string, 44if one exists. The following values are guaranteed to be recognized: 45"tolower" and "toupper". 46 47 <p><br> 48<strong>Returns</strong><br> 49<code>wctrans</code> returns 0 and sets <code>errno</code> to <code>EINVAL</code> if the 50given name is invalid. Otherwise, it returns a valid non-zero wctrans_t 51value. 52 53 <p><br> 54<strong>Portability</strong><br> 55<code>wctrans</code> is C99. 56 57 <p>No supporting OS subroutines are required. 58 59 <p><br> 60 61 </body></html> 62 63