R
Ravi Uday
Hi,
Can some-one comment on below snippet ?
static int xxx_list_compare (void *ptr1, void *ptr2) {
if (ptr1 && ptr2 && (ptr1 == ptr2)) {
return (0);
}
return (1);
}
Are bit operations and comparing operations allowed on void * ?
Any redundancy in the code.
thanks,
- ravi
Can some-one comment on below snippet ?
static int xxx_list_compare (void *ptr1, void *ptr2) {
if (ptr1 && ptr2 && (ptr1 == ptr2)) {
return (0);
}
return (1);
}
Are bit operations and comparing operations allowed on void * ?
Any redundancy in the code.
thanks,
- ravi