How to allocate memory for an array and a struct in one malloc call without breaking strict aliasing? – stackoverflow.com 18:18 Posted by Unknown No Comments When allocating memory for a variable sized array, I often do something like this: struct array { long length; int *mem; }; struct array *alloc_array( long length) { struct array *arr = ... from Hot Questions - Stack Exchange OnStackOverflow via Blogspot Share this Unknown
0 Comment to "How to allocate memory for an array and a struct in one malloc call without breaking strict aliasing? – stackoverflow.com"
Post a Comment