How to do run-time array declaration?

c60c-4br at e260-3a.berkeley.edu c60c-4br at e260-3a.berkeley.edu
Wed Sep 21 02:41:17 AEST 1988



Can any one tell me if there is any trick for run-time declaration of
arrays?  What I want to do is to read in the actual array size from a
file at runtime (so the size depends on the file read in), then
proceed to define the array.  I heard you can get the space by using
calloc(), but then will you be able to treat it as array?  Please
e-mail me if you have any suggestions, thanks in advance.




-------------------------------------------------------------------
Jerry Yao				"LIVE SYMBOLICALLY!!"
c60c-4br at rosebud.berkeley.Edu



More information about the Comp.lang.c mailing list