Re: Convert Static Array to Dynamic Array ?



On 12 Jul 2005 23:13:28 -0700, raxitsheth@xxxxxxxxx wrote in
comp.lang.c:

> I am using array in my progrm...
>
> is there any tool /tips so that i can convert my program to Dynamic
> Array...so that I can Add more Element to Array....
>
> Code is around 4000 line 'C' (not C++) program....

How is the array defined, and how is it accessed?

It may be as simple as replacing the global array definition with a
global definition of a pointer to that type, and allocating memory for
it early on in main(). Then again, it may not be that simple.

You need to provide more information.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html
.