diff options
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 ; +} |
