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

Function sitoa

src/hacklib.c:633–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631}
632
633DISABLE_WARNING_FORMAT_NONLITERAL /* one compiler complains about
634 result of ?: for format string */
635
636/* make a signed digit string from a number */
637char *
638sitoa(int n)
639{
640 static char buf[13];
641
642 Sprintf(buf, (n < 0) ? "%d" : "+%d", n);
643 return buf;
644}
645
646RESTORE_WARNING_FORMAT_NONLITERAL
647

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected