view toys/false.c @ 399:7a5b70965e0e

Bugfix (spotted by Nathan McSween): xread can't detect <0 if the return type is stored in an unsigned variable.
author Rob Landley <rob@landley.net>
date Wed, 28 Dec 2011 13:01:12 -0600
parents 163498bf547b
children
line wrap: on
line source

/* vi: set sw=4 ts=4:
 *
 * false.c - Return nonzero.
 *
 * Copyright 2007 Rob Landley <rob@landley.net>
 *
 * See http://www.opengroup.org/onlinepubs/009695399/utilities/false.html

USE_FALSE(NEWTOY(false, NULL, TOYFLAG_BIN))

config FALSE
	bool "false"
	default y
	help
	  Return nonzero.
*/

#include "toys.h"

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