MCPcopy Create free account
hub / github.com/cppla/ServerStatus / parse_uint8

Function parse_uint8

server/src/system.c:741–748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741static int parse_uint8(unsigned char *out, const char **str)
742{
743 int i;
744 if(parse_int(&i, str) != 0) return -1;
745 if(i < 0 || i > 0xff) return -1;
746 *out = i;
747 return 0;
748}
749
750static int parse_uint16(unsigned short *out, const char **str)
751{

Callers 1

net_addr_from_strFunction · 0.85

Calls 1

parse_intFunction · 0.85

Tested by

no test coverage detected