Hi, I just tried to make a manual Comparing strings by using this code:
Code:
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));
}
it doesn't work!, any help? another thing I'm still confusing on type casting a variable (char**) i , can someone explain me it ?! thanks