S
Serve Laurijssen
Given this structure:
typedef struct S
{
struct Inner {
char desc[128];
char *file[MAX_PATH+1];
} *libs;
} S;
The Inner struct has a description string and an array of file strings. I
know the the max length of each file upfront, but not how many files go in
there. As you can see file is now declared as an array of MAX_PATH+1 char
pointers, but I want a dynamic array of static char array. (pfff)
How do I declare and assign to that?
typedef struct S
{
struct Inner {
char desc[128];
char *file[MAX_PATH+1];
} *libs;
} S;
The Inner struct has a description string and an array of file strings. I
know the the max length of each file upfront, but not how many files go in
there. As you can see file is now declared as an array of MAX_PATH+1 char
pointers, but I want a dynamic array of static char array. (pfff)
How do I declare and assign to that?