string compare function in c programming language that has 3 outputs
- by Roshan
Write your own version of the strcmp function string_compare.
Supply a main program that will test each of the 3 differing outcomes.
int string_compare(char *s, char *t);
returns
<0 if s is lexically before t
0 if s is identical to t
>0 if s is lexically after t