From b04c5e0f9536d19b26efe1d69807c1f42b4b95ca Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 7 Oct 2019 15:01:06 +0200 Subject: Move print_version declaration from util.h to common.h Signed-off-by: David Oberhollenzer --- include/common.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/common.h') diff --git a/include/common.h b/include/common.h index 0e9da0c..369c21f 100644 --- a/include/common.h +++ b/include/common.h @@ -156,4 +156,12 @@ int pushdn(const char *path, size_t len); /* Returns 0 on success. On failure, prints error message to stderr. */ int popd(void); +/* + A common implementation of the '--version' command line flag. + + Prints out version information. The program name is extracted from the + BSD style __progname global variable. +*/ +void print_version(void); + #endif /* COMMON_H */ -- cgit v1.2.3