Mercurial > hg > toybox
view toys/hello.c @ 236:6b292ee780ab
Minor cleanup: move mke2fs options into mke2fs.c.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 19 Jan 2008 17:55:45 -0600 |
parents | 163498bf547b |
children | 4f1ca01db000 |
line wrap: on
line source
/* vi: set sw=4 ts=4: * * hello.c - A hello world program. * * Copyright 2006 Rob Landley <rob@landley.net> * * Not in SUSv3. * See http://www.opengroup.org/onlinepubs/009695399/utilities/ USE_HELLO(NEWTOY(hello, NULL, TOYFLAG_USR|TOYFLAG_BIN)) config HELLO bool "hello" default y help A hello world program. You don't need this. Mostly used as an example/skeleton file for adding new commands, occasionally nice to test kernel booting via "init=/bin/hello". */ #include "toys.h" void hello_main(void) { printf("Hello world\n"); }