Add Conway's Game of Life
This commit is contained in:
@ -24,7 +24,10 @@
|
||||
* without meeting its requirements concerning secrecy or length.
|
||||
*/
|
||||
void *memfrob(void *buf, size_t size) {
|
||||
unsigned char *p = (unsigned char *)buf;
|
||||
for (size_t i = 0; i < size; ++i) p[i] ^= '*';
|
||||
size_t i;
|
||||
unsigned char *p;
|
||||
for (p = buf, i = 0; i < size; ++i) {
|
||||
p[i] ^= '*';
|
||||
}
|
||||
return buf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user