From 9552c6b7edc274b6466fe7eb4428e8d2affb5dbe Mon Sep 17 00:00:00 2001 From: Henning Braun Date: Mon, 16 Sep 2024 11:38:49 +0200 Subject: [PATCH] info printing update --- src/hexter.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/hexter.c b/src/hexter.c index 8a799c6..79cb19f 100644 --- a/src/hexter.c +++ b/src/hexter.c @@ -275,17 +275,24 @@ void initParameters() payload_arg_id = -1; } +void printVersion() +{ + printf("%s\n", BIN_NAME); + printf("Version: %s\n", BIN_VS); + printf("Last changed: %s\n", BIN_LAST_CHANGED); + printf("Compiled: %s %s\n", __DATE__, __TIME__); +} + void printUsage() { printf("Usage: %s [options] -file a/file [options]\n", BIN_NAME); printf("Usage: %s [options] -pid 123 [options]\n", BIN_NAME); - printf("\n"); - printf("Version: %s\n", BIN_VS); - printf("Last changed: %s\n", BIN_LAST_CHANGED); } void printHelp() { + printVersion(); + printf("\n"); printUsage(); printf("\n"); printf("Options:\n");