g'day,
Could anybody help me with joinning data?
Below what I do....
Code:struct data { union { struct { u_int16_t match_size; char name[512]; u_int8_t revision; } user; u_int16_t match_size; } u; unsigned char data[0]; }; int main{ struct data *p=NULL, *m=NULL; p = foo();// here i add something to struct struct data m = oof();// and here too memcpy(p+sizeof(struct data),m,sizeof(struct data)); // it's not appending data from *m pointer to *p pointer, why? how that make? }