allocation problem

From: SSJBardock (ssjbardock_at_dragonballz.net)
Date: 10/17/03


Date: Fri, 17 Oct 2003 15:37:28 +0200

please help me, I'm rewriting a program I made before because I lost the
source and I want to allocate a number of text strings that are 500
characters long.
So I tried this:
char *m_IDs[500]=(char *)malloc(m_NumberOfStrings);

That obviously doesn't work, but I can't remember how to do it.

Thanks in advance,

SSJBardock



Relevant Pages

  • Re: CStrings and memory
    ... Then you allocate a few more strings ... Now you need to allocate another string, but there is no more memory. ... In addition to strings, there are other things that get allocated: ... have perhaps confused "address space" with "working set". ...
    (microsoft.public.vc.mfc)
  • Re: CD Review: Arizona Republic
    ... Worst Enemy, with its bells, strings and timpani, and Comin' Down, with '60s ... Girls in Their Summer Clothes. ... an East Coast town and reminds us what a master lyricist he is: ... This latest E Street effort shows Springsteen hasn't lost his magic. ...
    (rec.music.artists.springsteen)
  • Re: CStrings and memory
    ... Then you allocate a few more strings ... Now you need to allocate another string, but there is no more memory. ... What you need to measure are the working set size before the strings are allocated (which ...
    (microsoft.public.vc.mfc)
  • Re: Webstrings. Who makes them?
    ... John Pearse ... Strings was in existence in England for some fifteen years before Mary ... Now I must get back on the phone to shout at USAir, who lost two pieces ... Linda saved the day by taking her to the malls and outfitting ...
    (rec.music.makers.guitar.acoustic)
  • Re: Best way to allocate a large amount of data
    ... >likely to be less than 200 characters but all strings will be the same length, ... use a pointer to an array of Y characters: ... you acees mystrings using the same syntax: ... If Y is not a compile-time constant, either, you also need to allocate ...
    (comp.lang.c)