ftp.delorie.com/archives/browse.cgi | search |
To: | djgpp AT delorie DOT com |
Subject: | Re: Dynamic Arrays |
Message-ID: | <19970120.191903.4991.0.chambersb@juno.com> |
References: | <01bc072e$33eb9b20$ee038cd0 AT wahander> |
From: | chambersb AT juno DOT com (Benjamin D Chambers) |
Date: | Mon, 20 Jan 1997 22:20:20 EST |
On 21 Jan 1997 00:04:37 GMT "Josh Anderson" <randerso AT win DOT bright DOT net> writes: >I know this is a stupid question, but how do you create a dynamic >array of >a bunch of structs? I only need to set the size of the array at init >time. >And then free the memory at exit. > >Thanks in advance, >Josh > > Int I[0]; ... I=(int *)malloc(NumInts); ...Chambers
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |