Difference between revisions of "cpp/string/byte/strrchr"
From cppreference.com
m (Text replace - "<!-- ======== --> " to "") |
m (Text replace - "{{params}}" to "===Parameters===") |
||
Line 13: | Line 13: | ||
Finds the last occurrence of the character {{tt|ch}} in the character string pointed to by {{tt|str}}. | Finds the last occurrence of the character {{tt|ch}} in the character string pointed to by {{tt|str}}. | ||
− | + | ===Parameters=== | |
{{param list begin}} | {{param list begin}} | ||
{{param list item | str | pointer to the null-terminated character string to be analyzed}} | {{param list item | str | pointer to the null-terminated character string to be analyzed}} |
Revision as of 17:40, 2 August 2011
Template:cpp/string/narrow/sidebar 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 character string pointed to by str
.
Parameters
str | - | pointer to the null-terminated character string to be analyzed |
ch | - | character to search for |
pointer to the found character in str
, or Template:cpp if no such character is found.
This section is incomplete Reason: no example |