Need help with C syntax in examples from 'Learning Core Audio' book
Need help with C syntax in examples from 'Learning Core Audio' book
- Subject: Need help with C syntax in examples from 'Learning Core Audio' book
- From: Ben <email@hidden>
- Date: Wed, 16 May 2012 12:00:06 +0100
I'm running through the examples in the book 'Learning Core Audio' and I came across these two lines...
char errorString[20];
// see if it appears to be a 4-char-code
*(UInt32 *)(errorString + 1) = CFSwapInt32HostToBig(error);
The second line looks pretty alien to me (rusty on C), can someone explain what is going on please? I understand what the function CFSwapInt32HostToBig() is doing, but what is going on with errorString?
Thanks in advance.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden