view toys/false.c @ 304:93223118c813

Option parsing: stopearly is now a ^ prefix (not +), and an option string with no flags auto-enables stopearly (so seq doesn't have to specify it to avoid having negative number arguments eaten by the option parsing logic).
author Rob Landley <rob@landley.net>
date Thu, 26 Jun 2008 22:48:43 -0500
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;
}