Dinamically allocate array of array of structures



Hello all
I would like to dinamically allocate an array of array of structures.
To explain this:

struct file{ char* fileName,int inode) myfiles[];
struct file{ char* fileName,int inode) mydirs[][];

but I would like to do it dinamically with linked list.
I am able to do it for myfiles, but not with mydirs.
Pseudo-code is ok.
If this is not so simple I will use static arrays.
Thanks a lot

Valerio

.



Relevant Pages

  • Re: Dinamically allocate array of array of structures
    ... I would like to dinamically allocate an array of array of structures. ... I.e. a two-dimensional array of structures. ... Is this your first day learning C? ...
    (comp.lang.c)
  • Re: phrase search
    ... Find shortest array Ps of the Pi's ... What programming languagedo you use? ... Take the pseudo-code, and copy it directly into the source code file. ... Then there's what they call a "for loop", ...
    (sci.logic)
  • Re: returning char arrays from a function
    ... C does not know from a stack. ... static arrays of unmodifiable char. ... The array continues to exist even after ...
    (comp.lang.c)
  • Re: Effective perl function to remove one element from array?
    ... >> from an array, and have the array size shrink by one. ... The OP's pseudo-code looks like ... It is probably true that a hash is a better data structure for the ... "grep" seems to be what OP was aiming at. ...
    (comp.lang.perl.misc)
  • Re: [Lit.] Buffer overruns
    ... >static arrays with pointers. ... an array type to a pointer type. ... a statically sized array to a dynamically allocated buffer. ...
    (sci.crypt)