18 lines
549 B
C
18 lines
549 B
C
#include <stdio.h>
|
|
|
|
#include "version_gen.h"
|
|
|
|
void
|
|
print_version(void)
|
|
{
|
|
printf("%s version %s\n", g_prog_name.name, PING_VERSION);
|
|
printf("Copyright (C) 2026 lohhiicccc\n");
|
|
printf("License GPLv3+:");
|
|
printf("GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>\n");
|
|
printf("This is free software: you are free to change and redistribute it.\n");
|
|
printf("There is NO WARRANTY, to the extent permitted by law.\n");
|
|
printf("\n");
|
|
#if PING_HAS_GIT_COMMIT
|
|
printf("Build: %s (commit %s)\n", PING_BUILD_DATE, PING_GIT_COMMIT);
|
|
#endif
|
|
}
|