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

Developer

API Reference

FUNCTION: MEMCHREND()

Brew Release
Brew MP 1.0.2
See Also
MEMCHR() STRCHREND() Helper Functions
Description
Finds a character in a memory buffer, or returns a pointer to the end of the buffer if the character is not found.
Params
buf
[]:
Memory to search.
c
[]:
Character to be located.
length
[]:
Size of buf.
Prototype
  •    char *MEMCHREND( const char *buf, int c, size_t length );
    
Return

  • Returns a pointer to the first occurrence of c in buf or a pointer to (buf + length) if c is not found.
Side Effect
  • None
Comments
None