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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -