diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-05-26 15:46:13 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-05-26 15:46:13 +0000 |
| commit | deccf98369a77c3fab8be3b26bab7c0c7f04bca3 (patch) | |
| tree | e7f1ecd1764a1657bc83b6f860a24592d8a2b42b /src/s6/help.c | |
| parent | 31c208b970599588b00837294871fa4e4eeb01de (diff) | |
| download | s6-frontend-deccf98369a77c3fab8be3b26bab7c0c7f04bca3.tar.gz | |
Boilerplate for main command
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/s6/help.c')
| -rw-r--r-- | src/s6/help.c | 16 |
1 files changed, 16 insertions, 0 deletions
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 <skalibs/buffer.h> +#include <skalibs/strerr.h> + +#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 ; +} |
