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

Function strkitten

src/hacklib.c:275–283  ·  view source on GitHub ↗

append a character to a string (in place): strcat(s, {c,'\0'}); */

Source from the content-addressed store, hash-verified

273
274/* append a character to a string (in place): strcat(s, {c,'\0'}); */
275char *
276strkitten(char *s, char c)
277{
278 char *p = eos(s);
279
280 *p++ = c;
281 *p = '\0';
282 return s;
283}
284
285/* truncating string copy */
286void

Callers 15

AltChoiceMethod · 0.85
AddToolButtonMethod · 0.85
optfn_discloseFunction · 0.85
optfn_pickup_typesFunction · 0.85
change_inv_orderFunction · 0.85
collect_menu_keysFunction · 0.85
dodiscoveredFunction · 0.85
doclassdiscoFunction · 0.85
ggetobjFunction · 0.85
list_migrating_monsFunction · 0.85
query_objlistFunction · 0.85
query_categoryFunction · 0.85

Calls 1

eosFunction · 0.85

Tested by

no test coverage detected