Re: I swear the Germans are mocking me... C_STRUCT aiMeshAnim** mMeshChannels (what?)
- Posted by mattlewis (admin) Mar 07, 2013
- 1233 views
ssallen said...
Am I missing something or shouldn't the last line be:
C_STRUCT aiMeshAnim **mMeshChannels;
Are they the same thing and the Germans are just having a good laugh at my expense?
They mean the same thing. This is a style issue. Some insist that the asterisks should be with the type, because they do, in fact, affect the type. But it is very common to see the asterisk next to the variables. It's all the same to the compiler.
ssallen said...
If so, what does ** mean anyway? All the C documentation I have found online only explains *.
The double asterisk just means a pointer to a pointer. It's an additional level of indirection.
Matt