mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 07:18:30 +00:00
Add Conway's Game of Life
This commit is contained in:
parent
db33973e0a
commit
dba7552c1e
22 changed files with 664 additions and 186 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue