MCPcopy Create free account
hub / github.com/apache/nuttx / find_value_end

Function find_value_end

tools/cfgparser.c:69–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67/* Find the end of a value string */
68
69static char *find_value_end(char *ptr)
70{
71 while (*ptr && !isspace((int)*ptr))
72 {
73 if (*ptr == '"')
74 {
75 do ptr++; while (*ptr && *ptr != '"');
76 if (*ptr) ptr++;
77 }
78 else
79 {
80 do ptr++; while (*ptr && !isspace((int)*ptr) && *ptr != '"');
81 }
82 }
83
84 return ptr;
85}
86
87/* Read the next line from the configuration file */
88

Callers 1

parse_lineFunction · 0.70

Calls 1

isspaceFunction · 0.50

Tested by

no test coverage detected