Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C dynamic structure

Name: Anonymous 2011-12-05 10:24

Something I've been wondering,

Is it possible at runtime to dynamically create a struct? I don't mean dynamic array size, I mean the variables and such inside a structure.

Name: Anonymous 2011-12-05 15:37

Yes, it's possible. Just grab a chunk of memory with malloc() and divide it up as you see fit.

The hard part is keeping track of what's stored where.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List