How about: struct Box **myboxes = mywall->boxes; ? Then you can do stuff like: for ( int i = 0 ; i < 15 ; i++ ) ...
stackoverflow.com