MCPcopy Index your code
hub / github.com/NetHack/NetHack / an

Function an

src/objnam.c:2144–2155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2142}
2143
2144char *
2145an(const char *str)
2146{
2147 char *buf = nextobuf();
2148
2149 if (!str || !*str) {
2150 impossible("Alphabet soup: 'an(%s)'.", str ? "\"\"" : "<null>");
2151 return strcpy(buf, "an []");
2152 }
2153 (void) just_an(buf, str);
2154 return strncat(buf, str, BUFSZ - 1 - Strlen(buf));
2155}
2156
2157char *
2158An(const char *str)

Callers 15

amii_player_selectionFunction · 0.85
chweponFunction · 0.85
end.cFile · 0.85
really_doneFunction · 0.85
docall_xnameFunction · 0.85
convert_lineFunction · 0.85
H2Opotion_dipFunction · 0.85
itemactionsFunction · 0.85
find_trapFunction · 0.85
on_msgFunction · 0.85
canwearobjFunction · 0.85

Calls 3

nextobufFunction · 0.85
just_anFunction · 0.85
impossibleFunction · 0.70

Tested by 1

test_moveFunction · 0.68