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. */
| 455 | * @return 0 and doesn't modify *stringPtr otherwise. |
| 456 | */ |
| 457 | static 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 |
no outgoing calls
no test coverage detected