the reason will be word allignnent and padding problem.
if you deffine structure like this it will do the job i.e 10 bytes
typedef struct{
char tagid [ 3]; //0-2 TAG identifier. It contains...
Type: Posts; User: learnc_kr
the reason will be word allignnent and padding problem.
if you deffine structure like this it will do the job i.e 10 bytes
typedef struct{
char tagid [ 3]; //0-2 TAG identifier. It contains...
hi,
instead of copying bye by byte, you can copy 4 bytes at a time until you need to copy more than 4 bytes, after you can copy byte by byte. it will be faster.
regards