Discussion: void * in ANSC
Afficher un message
Vieux 05/02/2008, 17h46   #23
Army1987
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: void * in ANSC

Peter Nilsson wrote:
> How many bytes does the following access?
>
> memcpy(foo, bar, 0);
>
> If it's none, then why should *memcpy(foo, bar, 0) be
> any different? If it isn't different, then why should
> dereferencing a volatile void pointer be any different?

Ok, another example:

volatile struct incomplete *foo = a_function_returning_a_struct_pointer();
*foo;
How many bytes does the statement access?


--
Army1987 (Replace "NOSPAM" with "email")
  Réponse avec citation
 
Page generated in 0,05617 seconds with 9 queries