• 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
Parsing cString - Silly question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Parsing cString - Silly question


  • Subject: Parsing cString - Silly question
  • From: Lorenzo <email@hidden>
  • Date: Fri, 18 Nov 2005 16:13:49 +0100

Hi,
how can I add an element to an array of float?
I am parsing a text file contains variables, but until I parse the whole
text I cannot know how many variables that text contains.
Actually I parse the text twice. The first time I count the variables then

    float   *variables = malloc(sizeof(float) * totVar);

then I parse the text again to put the variables into my array.
Is a way to do everything in one loop only? Will be faster?
Sorry for the silly question.


Best Regards
--
Lorenzo
email: email@hidden

 _______________________________________________
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: Parsing cString - Silly question
      • From: John Stiles <email@hidden>
    • Re: Parsing cString - Silly question
      • From: Wain <email@hidden>
    • Re: Parsing cString - Silly question
      • From: Ryan Britton <email@hidden>
  • Prev by Date: Re: Automagic instantiation of singletons?
  • Next by Date: Re: Custom controls in Interface Builder?
  • Previous by thread: Re: How to make sure that end of string is visible in NSTextField
  • Next by thread: Re: Parsing cString - Silly question
  • Index(es):
    • Date
    • Thread