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

Function seen_string

src/dungeon.c:3367–3384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3365}
3366
3367staticfn const char *
3368seen_string(xint16 x, const char *obj)
3369{
3370 /* players are computer scientists: 0, 1, 2, n */
3371 switch (x) {
3372 case 0:
3373 return "no";
3374 /* an() returns too much. index/strchr is ok in this case */
3375 case 1:
3376 return strchr(vowels, *obj) ? "an" : "a";
3377 case 2:
3378 return "some";
3379 case 3:
3380 return "many";
3381 }
3382
3383 return "(unknown)";
3384}
3385
3386/* better br_string */
3387staticfn const char *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected