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

Function sfvalue_char

src/sfbase.c:406–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406char *sfvalue_char(char *a, int n)
407{
408 int i;
409 static char buf[120];
410 char *cp;
411
412 cp = &buf[0];
413 if (n < (int) (sizeof buf - 1))
414 buf[n] = '\0';
415 else
416 buf[(int) (sizeof buf - 1)] = '\0';
417 for (i = 0; i < n; ++i, ++cp, ++a)
418 *cp = *a;
419 *cp = '\0';
420 return buf;
421}
422
423char *sfvalue_boolean(boolean *a)
424{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected