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

Function find_value_end

tools/cfgdefine.c:109–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107/* Find the end of a value string */
108
109static char *find_value_end(char *ptr)
110{
111 while (*ptr && !isspace((int)*ptr))
112 {
113 if (*ptr == '"')
114 {
115 do ptr++; while (*ptr && (*ptr != '"' || *(ptr - 1) == '\\'));
116 if (*ptr) ptr++;
117 }
118 else
119 {
120 do ptr++; while (*ptr && !isspace((int)*ptr) && *ptr != '"');
121 }
122 }
123
124 return ptr;
125}
126
127/* Read the next line from the configuration file */
128

Callers 1

parse_lineFunction · 0.70

Calls 1

isspaceFunction · 0.50

Tested by

no test coverage detected