Synopsis
int strncmp(str1, str2, n);
string str1;
string str2;
int n;
Description
Compares string str1 with string str2 up to a limit of n characters
Parameters
- str1
The first string
- str2
The second string
- n
The number of characters to compare
Returns
A positive integer if str1 > str2, 0 if str1 == str2, a negative integer if str1 str2