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

Function parse_uint16

server/src/system.c:750–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

748}
749
750static int parse_uint16(unsigned short *out, const char **str)
751{
752 int i;
753 if(parse_int(&i, str) != 0) return -1;
754 if(i < 0 || i > 0xffff) return -1;
755 *out = i;
756 return 0;
757}
758
759int net_addr_from_str(NETADDR *addr, const char *string)
760{

Callers 1

net_addr_from_strFunction · 0.85

Calls 1

parse_intFunction · 0.85

Tested by

no test coverage detected