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. */
| 374 | * @return 0 and doesn't modify *stringPtr otherwise. |
| 375 | */ |
| 376 | static 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 |
no test coverage detected