copy structure to unsigned char
- From: "Ravi" <raviuday@xxxxxxxxx>
- Date: 28 Sep 2006 13:20:55 -0700
Hi,
I need to copy a nested structure (structures having multiple
structures) into a unsigned char
array. I cannot use memcpy as our micro doesnt support it.
I know the way to do is field by field copy of each structure members,
but then is there a
general algo / code which does this field by field copy ???? (Should
not have padding bytes)
My sample structure looks like this ->
struct temp {
struct t1;
struct t2;
struct t3;
...
...
char f[10];
};
I would be grateful if anybody shares me a generic code to do the
above,.
thanks
ravi
.
- Follow-Ups:
- Re: copy structure to unsigned char
- From: Bill Medland
- Re: copy structure to unsigned char
- Prev by Date: Re: file info
- Next by Date: Where do I go from here?
- Previous by thread: Data structure for representing overlapping abstract sets in the style of Venn Diagrams?
- Next by thread: Re: copy structure to unsigned char
- Index(es):
Relevant Pages
|