• 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
array with unspecified bounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

array with unspecified bounds


  • Subject: array with unspecified bounds
  • From: Roland Silver <email@hidden>
  • Date: Thu, 20 Mar 2008 11:29:30 -0600

In my code, a VoiceArray struct has a refs field defined by
     struct Voice (*refs)[];
A refs array has bounds which are unspecified in its definition, but it is known to have voiceArray->count elements.
What is the proper way to write the following code to avoid the following error?

NSString* deParseVoices(VoiceArray* voiceArray) {
int k;
for (k=0; k<voiceArray->count; k++) {
Voice* voice = (voiceArray->refs)[k];
error: invalid use of array with unspecified bounds

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Why doesn't FileMerge work?
  • Next by Date: Re: Why doesn't FileMerge work?
  • Previous by thread: RE: Problem setting up project directory
  • Next by thread: Project caching
  • Index(es):
    • Date
    • Thread