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

Function read_line

tools/initialconfig.c:147–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 ****************************************************************************/
146
147static char *read_line(FILE *stream)
148{
149 char *ptr;
150
151 for (; ; )
152 {
153 g_line[MAX_LINE] = '\0';
154 if (!fgets(g_line, MAX_LINE, stream))
155 {
156 return NULL;
157 }
158 else
159 {
160 ptr = skip_space(g_line);
161 if (*ptr && *ptr != '#' && *ptr != '\n')
162 {
163 return ptr;
164 }
165 }
166 }
167}
168
169/****************************************************************************
170 * Name: parse_line

Callers 1

find_variableFunction · 0.70

Calls 2

skip_spaceFunction · 0.70
fgetsFunction · 0.50

Tested by

no test coverage detected