MCPcopy Create free account
hub / github.com/coreutils/coreutils / operand_matches

Function operand_matches

src/dd.c:1352–1360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1350/* Return true if STR is of the form "PATTERN" or "PATTERNDELIM...". */
1351
1352ATTRIBUTE_PURE
1353static bool
1354operand_matches (char const *str, char const *pattern, char delim)
1355{
1356 while (*pattern)
1357 if (*str++ != *pattern++)
1358 return false;
1359 return !*str || *str == delim;
1360}
1361
1362/* Interpret one "conv=..." or similar operand STR according to the
1363 symbols in TABLE, returning the flags specified. If the operand

Callers 2

parse_symbolsFunction · 0.85
operand_isFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected