MCPcopy Create free account
hub / github.com/catboost/catboost / longCommandWArg

Function longCommandWArg

contrib/libs/zstd/programs/zstdcli.c:457–463  ·  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

455 * @return 0 and doesn't modify *stringPtr otherwise.
456 */
457static int longCommandWArg(const char** stringPtr, const char* longCommand)
458{
459 size_t const comSize = strlen(longCommand);
460 int const result = !strncmp(*stringPtr, longCommand, comSize);
461 if (result) *stringPtr += comSize;
462 return result;
463}
464
465
466#ifndef ZSTD_NODICT

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected