Hi, I just tried to make a manual Comparing strings by using this code:
it doesn't work!, any help? another thing I'm still confusing on type casting a variable (char**) i , can someone explain me it ?! thanksCode:int compare(const void* i, const void* j); int main() { int i = compare("hi", "hi"); printf("%d", compare); } int compare(const void* i, const void* j) { return (strcmp(*(char**)i, *(char**)j)); }