axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
axl_bool axl_memcmp ( const char *  string,
const char *  string2,
int  size 

Allows to check if both strings provided are equal on its initial size bytes.

This function is more efficient than common memcmp because it doesn't perform the additional work to figure out which are the bytes that differ both strings.

stringThe string to check.
string2The second string to check.
sizeThe size to check for both strings to be equal.
axl_true if the both strings are equal for its initial size bytes or axl_false if not.

Referenced by axl_stream_remove(), axl_stream_replace(), and axl_stream_split().