• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2011.09/share/doc/arm-arm-none-eabi/html/libc/
1<html lang="en">
2<head>
3<title>wmemchr - 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="Wchar-strings.html#Wchar-strings" title="Wchar strings">
9<link rel="next" href="wmemcmp.html#wmemcmp" title="wmemcmp">
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="wmemchr"></a>
28<p>
29Next:&nbsp;<a rel="next" accesskey="n" href="wmemcmp.html#wmemcmp">wmemcmp</a>,
30Up:&nbsp;<a rel="up" accesskey="u" href="Wchar-strings.html#Wchar-strings">Wchar strings</a>
31<hr>
32</div>
33
34<h3 class="section">6.1 <code>wmemchr</code>&mdash;find a wide character in memory</h3>
35
36<p><strong>Synopsis</strong>
37<pre class="example">     #include &lt;wchar.h&gt;
38     wchar_t	*wmemchr(const wchar_t *<var>s</var>, wchar_t <var>c</var>, size_t <var>n</var>);
39     
40</pre>
41   <p><strong>Description</strong><br>
42The <code>wmemchr</code> function locates the first occurrence of <var>c</var> in the
43initial <var>n</var> wide characters of the object pointed to be <var>s</var>. This
44function is not affected by locale and all wchar_t values are treated
45identically.  The null wide character and wchar_t values not
46corresponding to valid characters are not treated specially.
47
48   <p>If <var>n</var> is zero, <var>s</var> must be a valid pointer and the function
49behaves as if no valid occurrence of <var>c</var> is found.
50
51   <p><br>
52<strong>Returns</strong><br>
53The <code>wmemchr</code> function returns a pointer to the located
54wide character, or a null pointer if the wide character does not occur
55in the object.
56
57   <p><br>
58<strong>Portability</strong><br>
59<code>wmemchr</code> is ISO/IEC 9899/AMD1:1995 (ISO C).
60
61   <p>No supporting OS subroutines are required.
62
63   <p><br>
64
65   </body></html>
66
67