aboutsummaryrefslogtreecommitdiffstats
path: root/src/s6/help.c
blob: f7de80fd2d47e33eb931ab08583b8687bad5c2d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 ;
}