MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / get_arg

Function get_arg

ffserver.c:1232–1262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1230}
1231
1232static void get_arg(char *buf, int buf_size, const char **pp)
1233{
1234 const char *p;
1235 char *q;
1236 int quote;
1237
1238 p = *pp;
1239 while (isspace(*p)) p++;
1240 q = buf;
1241 quote = 0;
1242 if (*p == '\"' || *p == '\'')
1243 quote = *p++;
1244 for(;;) {
1245 if (quote) {
1246 if (*p == quote)
1247 break;
1248 } else {
1249 if (isspace(*p))
1250 break;
1251 }
1252 if (*p == '\0')
1253 break;
1254 if ((q - buf) < buf_size - 1)
1255 *q++ = *p;
1256 p++;
1257 }
1258 *q = '\0';
1259 if (quote && *p == quote)
1260 p++;
1261 *pp = p;
1262}
1263
1264static void parse_acl_row(FFStream *stream, FFStream* feed, IPAddressACL *ext_acl,
1265 const char *p, const char *filename, int line_num)

Callers 3

parse_acl_rowFunction · 0.85
parse_dynamic_aclFunction · 0.85
parse_ffconfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected