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

Function parse_uint8

src/base/net.cpp:337–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337static int parse_uint8(unsigned char *out, const char **str)
338{
339 int i;
340 if(parse_int(&i, str) != 0)
341 return -1;
342 if(i < 0 || i > 0xff)
343 return -1;
344 *out = i;
345 return 0;
346}
347
348static int parse_uint16(unsigned short *out, const char **str)
349{

Callers 1

net_addr_from_strFunction · 0.85

Calls 1

parse_intFunction · 0.85

Tested by

no test coverage detected