48 size_t const tagLength = strlen(
tag);
51 if (tagLength < 2)
return 0;
52 if (
tag[0] !=
'v')
return 0;
53 if (tagLength <= verLength)
return 0;
62 const char*
const exeName =
argv[0];
63 const char*
const tag =
argv[1];
65 printf(
"incorrect usage : %s tag \n", exeName);
73 printf(
"OK : tag is compatible with lz4 version \n");
77 printf(
"!! error : tag and versions are not compatible !! \n");
int main(int argc, const char **argv)
static int validate(const char *const tag)
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
static static fork const void static count static fd const char const char static newpath char char argv
#define LZ4_VERSION_STRING