I'm not sure what you want, but here an example:
Code:
#include <stdio.h>
#include <stdlib.h>
struct bundle_info
{
char x;
char *y;
char z[100];
};
struct customer_details
{
int nr;
struct bundle_info bundle_data[10]; /* 10 instances */
};
int main(void)
{
customer_details thisCustomer;
thisCustomer.nr = 1;
thisCustomer.bundle_data[0].x = 'a';
thisCustomer.bundle_data[9].x = 'j';
/* y is a character pointer so we need to allocate space before copying */
thisCustomer.bundle_data[0].y = strdup("Hello Y");
strcpy(thisCustomer.bundle_data[0].z, "Hello Z");
printf("%s\n", thisCustomer.bundle_data[0].y);
printf("%s\n", thisCustomer.bundle_data[0].z);
free(thisCustomer.bundle_data[0].y);
return 0;
}
Hope it helps...
Cheers,
Monster