"Benry" <> writes:
> Only if it contains a pointer, or anything that takes up memory. If a
> struct just has an int or something in it, you don't have to allocate
> any memory.
Context is important; please read <http://cfaj.freeshell.org/google/>.
Of course you have to allocate memory for it. You can do so either by
calling an allocation function such as malloc(), or by declaring an
object (which implicitly allocates memory).
--
Keith Thompson (The_Other_Keith)
kst- <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.