28 Jan
2001
28 Jan
'01
8:54 p.m.
In Borland Pascal you would use fillchar(var x;value:word [size:word]); so the invoking would look exactly like your example: fillchar(x,0,sizeOf(x)); However with BP you can do it to the <64K in size variables (as this is a maximal size for "regular" variable in BP). Does this work for gpc as well? George Steve Loft wrote:
Is there a fast way to zero a large array, e.g. an equivalent to the following C fragment?
int x[100,100]; memset(x, 0, sizeof(x));
-- Steve