Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct S1{
- int a;
- };
- typedef struct S2{
- S1 *s1;
- int var;
- };
- typdef struct Slave{
- long addr;
- };
- S2 *str2 = (S2*)malloc(sizeof(S2) * 100);
- // do something with str2
- Slave slave;
- slave.addr = str2;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement