StupidOS/sbin/fdisk/version.c
d0p1 5c2c3bb348 chore: sync repo
- add various comments
- add stpd.file.mk
- etc
2025-10-30 16:36:18 +01:00

24 lines
617 B
C

#include <stdio.h>
#ifndef MK_PACKAGE
# define MK_PACKAGE "ext"
#endif /* !MK_PACKAGE */
#ifndef MK_COMMIT
# define MK_COMMIT "????"
#endif /* !MK_COMMIT */
extern const char *prg_name;
static const char *copyright = \
"Copyright (c) 2025, d0p1\n" \
"License BSD-3-Clause: " \
"<https://directory.fsf.org/wiki/License:BSD-3-Clause>\n" \
"This is free software: you are free to change and redistribute it.\n" \
"There is NO WARRANTY, to the extent permitterd by law.\n";
void
print_version(void)
{
printf("%s (%s) %s\n", prg_name, MK_PACKAGE, MK_COMMIT);
printf(copyright);
}