A
Angus
Hello
I am working with a struct (provided by an API I need to use) which
has int arrays, char* and char buffers. I have been told there may be
a problem because in previous code struct was copied using = and a
deep copy is required.
Do I have to copy each item in struct individually?
eg
strcpy(sttarget.szString, stsource.szString);
sttarget.intitem = stsource.intitem;
etc
Or is there some other effective way?
Angus
I am working with a struct (provided by an API I need to use) which
has int arrays, char* and char buffers. I have been told there may be
a problem because in previous code struct was copied using = and a
deep copy is required.
Do I have to copy each item in struct individually?
eg
strcpy(sttarget.szString, stsource.szString);
sttarget.intitem = stsource.intitem;
etc
Or is there some other effective way?
Angus