write a program that implementd and test the following functions for use C-strings without using the c-string libaray ( that is, you re NOT ALLOWED to use #include in this program):
int strcompare(const char *s1, const char *s2);
The strcompare function performs a comparison of s1 to s2. It starts with the first character in each string
and continues with subsequent characters until the corresponding characters differ or until the end of the
strings is reached. strcompare returns a value that is:
< 0 if s1 is less than s2,
== 0 if s1 is the same as s2, or
> 0 if s1 is greater than s2.
More precisely, if the strings differ, the value of the first nonmatching character in s2 subtracted from the
corresponding character in s1 is returned.
unsigned long strlength(const char *str);
The strlength function calculates the length of str. Returns the number of characters in str, not counting
the terminating null character
Test Run:
Enter string 1: cats rule
Enter string 2: DOGS DROOL
string 1 is 9 characters long.
string 2 is 10 characters long.
string 2 lexicographically comes before string 1.