[luau] dumb programmer question

Charles Lockhart lockhart at jeans.ifa.hawaii.edu
Thu Jan 2 17:36:01 PST 2003


Anybody know what the fastest way to clear a buffer in C on Linux would 
be?  Anything faster than

for(i = 0; i < sizeofbuffer; i++)
	buffer[i] = 0;

?

For some reason I think I saw

memcpy(&buffer, 0, sizeofbuffer);

used somewhere once, but after a long day, that looks wierd to me.

-Charles




More information about the LUAU mailing list