I would like to perform string comparisons between strings that possibly have differing lengths that is consistent with the C API call of the STRCMP method in C with this signature:
int strcmp ( const char * str1, const char * str2 );
I expect the function to perform as follows:
Return 0 if the strings are identical
Return 1 if the ASCII value of the first non-matching character of string 1 is greater than string 2.
Return -1 if the ASCII value of the first non-matching character of string 1 is less than string 2.
should return '-1' and '1' respectively.