MCPcopy Create free account
hub / github.com/F-Stack/f-stack / longCommandWArg

Function longCommandWArg

freebsd/contrib/zstd/programs/zstdcli.c:376–382  ·  view source on GitHub ↗

longCommandWArg() : * check if *stringPtr is the same as longCommand. * If yes, @return 1 and advances *stringPtr to the position which immediately follows longCommand. * @return 0 and doesn't modify *stringPtr otherwise. */

Source from the content-addressed store, hash-verified

374 * @return 0 and doesn't modify *stringPtr otherwise.
375 */
376static int longCommandWArg(const char** stringPtr, const char* longCommand)
377{
378 size_t const comSize = strlen(longCommand);
379 int const result = !strncmp(*stringPtr, longCommand, comSize);
380 if (result) *stringPtr += comSize;
381 return result;
382}
383
384
385#ifndef ZSTD_NODICT

Callers 6

parseCoverParametersFunction · 0.85
parseFastCoverParametersFunction · 0.85
parseLegacyParametersFunction · 0.85
parseAdaptParametersFunction · 0.85
mainFunction · 0.85

Calls 1

strncmpFunction · 0.85

Tested by

no test coverage detected