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

Developer

API Reference

STD_MEMSTR()

Brew Release
Brew MP 1.0.2
See Also
None
Description
The std_memstr() finds the first occurrence of a substring in a memory buffer.
Params
cpHaystack
[]:
buffer to search
cpszNeedle
[]:
NUL-terminated string to search for
nHaystackLen
[]:
size of cpHaystack in bytes
Interface
Prototype
  •    void *std_memstr(const char* cpHaystack, const char* cpszNeedle, 
                        int nHaystackLen);
    
Return
  • a pointer to the first occurrence of cpszNeedle if found, NULL otherwise
Side Effect
  • None
Comments
None