Question: I have a buffer, containing the raw information of a struct. I would like to create a function that takes in the buffer, and returns a struct of said type.

```
my_struct func(uin8t_t* buf){
    uin8t_t field1 = *buf;
    uin8t_t[3] = *(buf + 1);
    ...
    return 
}

```

assuming that field1, and field2 are fields within the struct, would field1's value be the first bit of buf, and field2's values be the 2nd, 3rd and 4th bytes of buf?

generalizing the question: does variable assignment simply take the expected number of bits from the value as dictated by the variables type?

Thanks

Answer: 
You have a missing =

```
<img src="Koala.png" alt = "Koalas" width = "200" height = "200">

```

Should do the trick.
Have your background color first and then put your image the computer reads the code top to bottom.