casting - typecasting in C -
in code error :
expected ‘const void *’ argument of type ‘struct in_addr’
i using memcmp
can type cast struct in_addr
const void*
const void * (struct in_addr )
you need cast address of object, not object itself:
(const void *)&my_obj
but in fact, such casts implict, can use:
&my_obj
Comments
Post a Comment