I already understood that, FillYourBrain.Originally posted by FillYourBrain
darksaidin you're confusing. you don't understand void *?
* after a type is pointer notation. It means that you have a pointer to that type. in the case of void * it basically means it can be a pointer to anything really. sizeof(void *) will return 4. sizeof(int *) will also return 4. It's just the size that a pointer on a 32 bit system is.
My problem at first was that I thought the * was always in front of the variable (and not behind the type) because there is no such thing as a pointer to a type but only pointers that can be used like variables of specific type.
At least in OP. C obviously defines it the other way round:
You define a new variable (which will be a pointer) of a type that [meaning "the type"] can be used to create pointers that can only point on a variable of that given type. ... which is a strange way of looking at it, but accurate. Only that this way of looking at it allows to have the * behind the type (which otherwise would make no sense) and not in front of the variable.
If you never coded in Delphi you probably won't understand my problem here.
Anyway, my problem has been solved, thanks to Cat explanation.