1 /* ISC license. */
2 
3 #include <unistd.h>
4 #include <skalibs/strerr2.h>
5 #include <skalibs/types.h>
6 
7 #define USAGE "exit [ exitcode ]"
8 
main(int argc,char const * const * argv)9 int main (int argc, char const *const *argv)
10 {
11   unsigned int e ;
12   PROG = "exit" ;
13   if (argc < 2) return 0 ;
14   if (!uint0_scan(argv[1], &e)) strerr_dieusage(100, USAGE) ;
15   _exit(e) ;
16 }
17