MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / show

Function show

test/life.c:11–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#define for_xy for_x for_y
10
11void show(void *u, int w, int h)
12{
13 int (*univ)[w] = u;
14 for_x printf("-"); printf("\n");
15 for_y {
16 for_x printf(univ[y][x] ? "[]" : " ");
17 printf("\n");
18 }
19 for_x printf("-"); printf("\n");
20 fflush(stdout);
21}
22
23void evolve(void *u, int w, int h)
24{

Callers 1

gameFunction · 0.70

Calls 2

printfFunction · 0.85
fflushFunction · 0.85

Tested by

no test coverage detected