| 1212 | } |
| 1213 | |
| 1214 | static void get_word(char *buf, int buf_size, const char **pp) |
| 1215 | { |
| 1216 | const char *p; |
| 1217 | char *q; |
| 1218 | |
| 1219 | p = *pp; |
| 1220 | skip_spaces(&p); |
| 1221 | q = buf; |
| 1222 | while (!isspace(*p) && *p != '\0') { |
| 1223 | if ((q - buf) < buf_size - 1) |
| 1224 | *q++ = *p; |
| 1225 | p++; |
| 1226 | } |
| 1227 | if (buf_size > 0) |
| 1228 | *q = '\0'; |
| 1229 | *pp = p; |
| 1230 | } |
| 1231 | |
| 1232 | static void get_arg(char *buf, int buf_size, const char **pp) |
| 1233 | { |
no test coverage detected