Computer Chess Club Archives


Search

Terms

Messages

Subject: Question about memcopying damned structs

Author: Matthias Gemuh

Date: 09:56:11 07/24/04






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.




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.