view toys/hello.c @ 339:157eab6dcdd2

Hello shouldn't be enabled in defconfig.
author Rob Landley <>
date Wed, 14 Jan 2009 20:41:37 -0600
parents 4f1ca01db000
children 5d4dacab7be0
line wrap: on
line source

/* vi: set sw=4 ts=4:
 * hello.c - A hello world program.
 * Copyright 2006 Rob Landley <>
 * Not in SUSv3.
 * See


config HELLO
	bool "hello"
	default n
	  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"

// Hello doesn't use these globals, they're here for example/skeleton purposes.

	char *b_string;
	long c_number;
	struct arg_list *d_list;
	long e_count;

	int more_globals;

#define TT this.hello

void hello_main(void)
	printf("Hello world\n");