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

Function onlyhexdigits

src/coloratt.c:800–810  ·  view source on GitHub ↗

hexdd[] is defined in decl.c */

Source from the content-addressed store, hash-verified

798
799/* hexdd[] is defined in decl.c */
800boolean
801onlyhexdigits(const char *buf)
802{
803 const char *dp = buf;
804
805 for (dp = buf; *dp; ++dp) {
806 if (!(strchr(hexdd, *dp) || *dp == '-'))
807 return FALSE;
808 }
809 return TRUE;
810}
811
812int32_t
813rgbstr_to_int32(const char *rgbstr)

Callers 1

rgbstr_to_int32Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected