From deccf98369a77c3fab8be3b26bab7c0c7f04bca3 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 26 May 2025 15:46:13 +0000 Subject: Boilerplate for main command Signed-off-by: Laurent Bercot --- src/s6/help.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/s6/help.c (limited to 'src/s6/help.c') diff --git a/src/s6/help.c b/src/s6/help.c new file mode 100644 index 0000000..f7de80f --- /dev/null +++ b/src/s6/help.c @@ -0,0 +1,16 @@ +/* ISC license. */ + +#include +#include + +#include "s6-internal.h" + +#define HELP_MESSAGE "This is the main help message.\n" + +int help (char const *const *argv) +{ + (void)argv ; + if (!buffer_putsflush(buffer_1, HELP_MESSAGE)) + strerr_diefu1sys(111, "write to stdout") ; + return 0 ; +} -- cgit v1.3.1