MCPcopy Create free account
hub / github.com/NetHack/NetHack / copy_colormap

Function copy_colormap

win/share/thintile.c:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27static char comment[BUFSZ];
28
29static void
30copy_colormap()
31{
32 int r, g, b;
33 char c[2];
34
35 while (fscanf(infile, "%[A-Za-z0-9.] = (%d, %d, %d) ", c, &r, &g, &b)
36 == 4) {
37 Fprintf(outfile, "%c = (%d, %d, %d)\n", c[0], r, g, b);
38 }
39}
40
41static boolean
42read_txttile()

Callers 1

mainFunction · 0.85

Calls 1

fscanfFunction · 0.85

Tested by

no test coverage detected