Difference between revisions of "cpp/string/byte/strrchr"
From cppreference.com
m (Text replace - "/sidebar" to "/navbar") |
m (r2.7.3) (Robot: Adding de, es, it, pt, ru) |
||
Line 36: | Line 36: | ||
{{dcl list end}} | {{dcl list end}} | ||
+ | [[de:cpp/string/byte/strrchr]] | ||
+ | [[es:cpp/string/byte/strrchr]] | ||
[[fr:cpp/string/byte/strrchr]] | [[fr:cpp/string/byte/strrchr]] | ||
+ | [[it:cpp/string/byte/strrchr]] | ||
[[ja:cpp/string/byte/strrchr]] | [[ja:cpp/string/byte/strrchr]] | ||
+ | [[pt:cpp/string/byte/strrchr]] | ||
+ | [[ru:cpp/string/byte/strrchr]] | ||
[[zh:cpp/string/byte/strrchr]] | [[zh:cpp/string/byte/strrchr]] |
Revision as of 16:06, 2 November 2012
Template:ddcl list begin <tr class="t-dsc-header">
<td>Defined in header
</td>
<cstring>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td class="t-dcl-nopad">const char *strrchr( const char *str, int ch );
</td>
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td class="t-dcl-nopad"> char *strrchr( char *str, int ch );
</td>
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end
Finds the last occurrence of the character ch
in the byte string pointed to by str
.
Contents |
Parameters
str | - | pointer to the null-terminated byte string to be analyzed |
ch | - | character to search for |
Return value
Pointer to the found character in str
, or NULL if no such character is found.
Example
This section is incomplete Reason: no example |
See also
C documentation for strrchr
|