Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Question about memcopying damned structs

Author: Robert Hyatt

Date: 10:32:10 07/24/04

Go up one level in this thread


On July 24, 2004 at 12:56:11, Matthias Gemuh wrote:

>
>
>
>
>a) memcpy(&ChsStrct->PlyData[ChsStrct->nPly+1],
> &ChsStrct->PlyData[ChsStrct->nPly], sizeof(PLYDATA));
>
>b) ChsStrct->PlyData[ChsStrct->nPly+1] = ChsStrct->PlyData[ChsStrct->nPly];
>
>
>Will either of these copy the array element of type struct PLYDATA ?.
>Any special thing to mention concerning speed, padding, aligninment ?
>
>Thanx,
>Matthias.


Ought to behave identically if I didn't overlook a subscripting/pointer
de-referencing bug...




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.