• 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
Re: a c question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a c question


  • Subject: Re: a c question
  • From: Andy Armstrong <email@hidden>
  • Date: Tue, 7 Feb 2006 11:39:39 +0000

On 7 Feb 2006, at 11:29, Robert Dell wrote:
the basic question I need answered is how do i implement open ended arrays? that is an array that does not have any upper limits, more items can be added as time goes on.

This isn't a Cocoa question is it? In Cocoa you'd use a NSMutableArray - but that's not going to do your homework for you.


In C you need to implement a growable array yourself - check out realloc().

--
Andy Armstrong, hexten.net

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


  • Follow-Ups:
    • Re: a c question
      • From: Robert Dell <email@hidden>
    • Re: a c question
      • From: Robert Dell <email@hidden>
References: 
 >a c question (From: Robert Dell <email@hidden>)

  • Prev by Date: Re: [ANN] UKCrashReporter 0.1
  • Next by Date: RE: Searching for socket API thread based
  • Previous by thread: Re: a c question
  • Next by thread: Re: a c question
  • Index(es):
    • Date
    • Thread