Ppl,
I am comparing two structures but C says that k>k2 and k==k2 are illegal for struct..how should I do it??
A :)
[code]
int cmp(KEY k, KEY k2)
{
int result;
if(k > k2)
{
result = 1;
}
else if(k == k2)
{
result = 0;
}
else
{
result = -1;
}
return result;
}
[\code]