Add Conway's Game of Life

This commit is contained in:
Justine Tunney 2020-11-18 08:26:03 -08:00
parent db33973e0a
commit dba7552c1e
22 changed files with 664 additions and 186 deletions

View file

@ -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;
}