C++ Programming/Code/Standard C Library/Functions/strncmp

strncmp
The strncmp function compares at most count characters of str1 and str2. The return value is as follows:

If there are less than count characters in either string, then the comparison will stop after the first null termination is encountered.


 * Related topics: strchr - strcmp - strcpy - strlen - strncat - strncpy