strchr
find the first occurrence of a character in a string
Calling Sequenceres = strchr(haystack, char)Argumentshaystack
a character string or matrix of character strings.
chara character.res
a character string or matrix of character strings.
Descriptionres = strchr(haystack, char) returns the first
occurrence of character in the string haystack.
char must contain only one string or as many
strings as in haystack (each one being one-
character-long).
ExamplesSee Also
strrchr
strstr