• 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-2013.11/share/doc/arm-arm-none-eabi/html/libc/
1<html lang="en">
2<head>
3<title>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="../index.html#dir" title="(dir)">
9<link rel="next" href="Introduction.html#Introduction" title="Introduction">
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="Top"></a>
28<p>
29Next:&nbsp;<a rel="next" accesskey="n" href="Introduction.html#Introduction">Introduction</a>,
30Up:&nbsp;<a rel="up" accesskey="u" href="../index.html#dir">(dir)</a>
31<hr>
32</div>
33
34<h2 class="unnumbered">The Red Hat newlib C Library</h2>
35
36<!-- The menu contents depend on the configuration, so we include them -->
37<!-- as a separate file -->
38<!-- switch to set SIGNALS on or off, according to whether config picks up -->
39<!-- signal subdirectory: -->
40<ul class="menu">
41<li><a accesskey="1" href="Introduction.html#Introduction">Introduction</a>
42<li><a accesskey="2" href="Stdlib.html#Stdlib">Stdlib</a>
43<li><a accesskey="3" href="Ctype.html#Ctype">Ctype</a>
44<li><a accesskey="4" href="Stdio.html#Stdio">Stdio</a>
45
46<li><a accesskey="5" href="Strings.html#Strings">Strings</a>
47<li><a accesskey="6" href="Wchar-strings.html#Wchar-strings">Wchar strings</a>
48
49<li><a accesskey="7" href="Signals.html#Signals">Signals</a>
50
51<li><a accesskey="8" href="Timefns.html#Timefns">Timefns</a>
52<li><a accesskey="9" href="Locale.html#Locale">Locale</a>
53<li><a href="Reentrancy.html#Reentrancy">Reentrancy</a>
54
55<li><a href="Misc.html#Misc">Misc</a>
56<li><a href="Syscalls.html#Syscalls">Syscalls</a>
57<li><a href="Arglists.html#Arglists">Arglists</a>
58
59<li><a href="Library-Index.html#Library-Index">Library Index</a>
60</ul>
61
62   <div class="node">
63<a name="index"></a>
64<p>
65Next:&nbsp;<a rel="next" accesskey="n" href="memccpy.html#memccpy">memccpy</a>,
66Previous:&nbsp;<a rel="previous" accesskey="p" href="bzero.html#bzero">bzero</a>,
67Up:&nbsp;<a rel="up" accesskey="u" href="Strings.html#Strings">Strings</a>
68<hr>
69</div>
70
71<h3 class="section">5.4 <code>index</code>&mdash;search for character in string</h3>
72
73<p><a name="index-index-375"></a><strong>Synopsis</strong>
74<pre class="example">     #include &lt;strings.h&gt;
75     char * index(const char *<var>string</var>, int <var>c</var>);
76     
77</pre>
78   <p><strong>Description</strong><br>
79This function finds the first occurence of <var>c</var> (converted to
80a char) in the string pointed to by <var>string</var> (including the
81terminating null character).
82
83   <p>This function is identical to <code>strchr</code>.
84
85   <p><br>
86<strong>Returns</strong><br>
87Returns a pointer to the located character, or a null pointer
88if <var>c</var> does not occur in <var>string</var>.
89
90   <p><br>
91<strong>Portability</strong><br>
92<code>index</code> requires no supporting OS subroutines.
93
94   <p><br>
95
96   </body></html>
97
98