Embedded TCP/IP stack  4.7.0

◆ fnet_strcmp_splitter()

fnet_int32_t fnet_strcmp_splitter ( const fnet_char_t in_str,
const fnet_char_t name,
fnet_char_t  splitter 
)

Compares two strings, with additional terminator.

Parameters
in_strPointer to the null or splitter terminated string to be compared.
namePointer to the null-terminated string to be compared.
splitterAdditional terminator that can be used in str.
Returns
This function returns zero if two strings are identical, otherwise returns the difference between the first two differing characters.

This function compares the two strings in_str and name, returning zero if they all match or the difference between the first two differing characters.
The name string can be terminated by null or splitter character.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net