MCPcopy Create free account
hub / github.com/ddnet/ddnet / parse_uint16

Function parse_uint16

src/base/net.cpp:348–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348static int parse_uint16(unsigned short *out, const char **str)
349{
350 int i;
351 if(parse_int(&i, str) != 0)
352 return -1;
353 if(i < 0 || i > 0xffff)
354 return -1;
355 *out = i;
356 return 0;
357}
358
359int net_addr_from_url(NETADDR *addr, const char *string, char *host_buf, size_t host_buf_size)
360{

Callers 1

net_addr_from_strFunction · 0.85

Calls 1

parse_intFunction · 0.85

Tested by

no test coverage detected