Comparing strings with user-created string class
- by meepz
Basically, I created my own string class, mystring.h and mystring.c. What I want to do is write a function that compares two "strings" and then returns 1 first word is larger than the second, the opposite if word 2 is larger than word 1, and 0 if the two words are equal. What I have so far is this:
int compareto(void * S1, void * S2){
String…