API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

FUNCTION: STRCHR()

Brew Release
Brew MP 1.0.2
See Also
WSTRCHR() Helper Functions
Description
This function is a wrapper around the strchr() function provided by the standard C library. Its behavior is identical to that of strchr(). This function finds a specified character within a string. This function will always take single-byte characters as input.
Params
string
[]:
NULL-terminated string to search.
c
[]:
Character to be located.
Prototype
  •    char *STRCHR( const char *string, int c );
    
Return

  • Returns a pointer to the first occurrence of c within string.
    Returns NULL if c is not found within string.
Side Effect
  • To find a character in a string that contain double-byte (AECHAR) characters, use WSTRCHR() instead.
Comments
None