view toys/true.c @ 245:67a0839bda77

Teach perror_exit() to take a NULL argument when we just want "command: error".
author Rob Landley <rob@landley.net>
date Sun, 27 Jan 2008 15:26:08 -0600
parents 163498bf547b
children
line wrap: on
line source

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

USE_TRUE(NEWTOY(true, NULL, TOYFLAG_BIN))

config TRUE
	bool "true"
	default y
	help
	  Return zero.
*/

#include "toys.h"

void true_main(void)
{
	return;
}