Parsing cString - Silly question
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