that is kinda what I did, I just would parse out the individual words one at
a time, then when I got it back I would allocate the room.  I appreciate the
help, thanx again.
bill

"Richard M. Hartman" <[EMAIL PROTECTED]> wrote in message
news:LYRIS-45725-91949-2002.05.29-10.43.36--wlalexander#[EMAIL PROTECTED]
lmos.com...
>
>
> "bill" <[EMAIL PROTECTED]> wrote in message
> news:87234@palm-dev-forum...
> >
> > Thanx for your responses,
> > first I don't claim to be a good speller :)
> > next, I don't know what the size of the Title or descriptions will be,
> they
> > will change.
> > second, I am using this on a palm.
> > third, I have all the books, and then read the and read them, been at
this
> > one thing for a while, then I have read them again (as I mentioned), but
> it
> > seems that most of them have to do with known sizes, I don't know how
many
> > strings that title and description will have, all I will know is that
they
> > will have the same amount.  I won't know the total until after the
return
> > from the 'Separator' function, because they have not been separated yet
> and
> > I don't know the lengths of the strings until after that either.  I
guess,
> I
> > need to know how to declare space for something before you know the
size,
> or
> > do I just pick a size that is larger than any that might occur??
>
>
> ... or you could give up trying to do everything in one pass.
>
> First: process the input once to determine how much memory you need to
> allocate
> Second: allocate that room
> Third: process the input _again_ to get your desired result
>
>
> --
> -Richard M. Hartman
> [EMAIL PROTECTED]
>
> 186,000 mi/sec: not just a good idea, it's the LAW!
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to