Function stdio_strchr

Function Documentation

const char *stdio_strchr(const char *haystack, char needle)

Search a string for a character.

This routine searches the haystack for the first occurence of the needle. The character must be a byte; that is, multi-byte characters are not supported. The haystack must be null terminated. If more than one occurence of needle is found in the haystack, a pointer to the first one will be returned.

Parameters:
  • haystack – The string to search IN.

  • needle – The char to search for.

Returns:

Pointer to the first occurence of the needle, or NULL if the char was not found.