Re: I swear the Germans are mocking me... C_STRUCT aiMeshAnim** mMeshChannels (what?)

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu