MCPcopy Create free account
hub / github.com/chen3feng/toft / ParseWidth

Function ParseWidth

base/string/format/specification.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38static int ParseWidth(const char* format, int* width)
39{
40 if (!isdigit(*format))
41 return 0;
42 char* endptr;
43 *width = strtoul(format, &endptr, 10);
44 if (*width < 0)
45 return 0;
46 return endptr - format;;
47}
48
49static int ParseLength(const char* format, int* length)
50{

Callers 2

ParseMethod · 0.85
ParsePrintWidthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected