aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/false.c
blob: 2476e8268a00b15292b12d44646a283672ffe030 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* false.c - Return nonzero.
 *
 * Copyright 2007 Rob Landley <rob@landley.net>
 *
 * See http://opengroup.org/onlinepubs/9699919799/utilities/false.html

USE_FALSE(NEWTOY(false, NULL, TOYFLAG_BIN|TOYFLAG_NOHELP))

config FALSE
  bool "false"
  default y
  help
    usage: false

    Return nonzero.
*/

#include "toys.h"

void false_main(void)
{
  toys.exitval = 1;
}