Hi,

I have the following structure, made up of four structures:-

Code:
struct customer_details {
    struct1;
    struct2;
    struct3;
    struct bundle_info bundle_data;
}thisCustomer;
the structure bundle_info is made up as follows....

Code:
struct bundle_info {
    char x;
    char y;
}
This has four instances...

Code:
struct bundle_info bundle1;
etc.
Now my question is thus...how do I assign values to one of these instances?

I thought it would be...

memcpy(thisCustomer.bundle1.x, buf, 5)

where buf is a character array.

However, this gives the error "bundle1 is not a member of thisCustomer".

Any ideas?

Bill

[code][/code]tagged by Salem