• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Need help with C syntax in examples from 'Learning Core Audio' book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Need help with C syntax in examples from 'Learning Core Audio' book
      • From: Brian Lambert <email@hidden>
References: 
 >is there anything at a lower level than core audio on Mac OS? (From: Nick Porcaro <email@hidden>)
 >Re: is there anything at a lower level than core audio on Mac OS? (From: Kevin Vanwulpen <email@hidden>)

  • Prev by Date: Re: is there anything at a lower level than core audio on Mac OS?
  • Next by Date: Re: Need help with C syntax in examples from 'Learning Core Audio' book
  • Previous by thread: Re: is there anything at a lower level than core audio on Mac OS?
  • Next by thread: Re: Need help with C syntax in examples from 'Learning Core Audio' book
  • Index(es):
    • Date
    • Thread