hi all, i've a problem in converting struct into short
here's the code i'm using, but it's still error while i'm running it.
typedef struct ip_header;
unsigned short *temp;
memcpy(temp, &ip_header, sizeof(ip_header));
any help will be greatly appreciated.
thx.