Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 223 -
------------------------------------------------------------------------------
8.11 Find a character in a string. <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
strchr
[Syntax]
#include <string.h>
char *strchr( const char *s, int c ) ;
[Arguments]
s Pointer to a string in which a character is searched.
c Character to be searched.
[Return]
Returns a pointer to the first matching location. If not found,
returns NULL.
[Description]
Searches "c" in a string pointed by "s", and returns the location of
the first matching character. "c" is converted to "char".