I have a struct Entity that is made up of Limbs and an enum, Limbs is also a struct with two items e.g.

```
typedef enum{ALIVE, DEAD} state;

typedef struct Limb{
    int is_connected;
    int is_wounded;
} Limb;

typedef struct Entity{
    Limb limb_1;
    Limb limb_2;
    state is_alive;
} Entity;

```

Now lets say I have a function that's designed to assign entity particular values, what is the proper syntax to use here? My current guess is this:

```
void assign_entity(Entity *entity){
    *entity = {
        .limb_1 = { 1, 0 },
        .limb_2 = { 1, 0 },
        .is_alive = ALIVE
    };
}

```

But I get an error (expected expression) when I use this syntax, what am I doing wrong here? What is the proper syntax for assigning to a struct inside a struct.