aboutsummaryrefslogtreecommitdiff
path: root/toys/hello.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-11-01 22:23:58 -0500
committerRob Landley <rob@landley.net>2006-11-01 22:23:58 -0500
commit9b3fc7d5e0fe4850c7faa67257231366bf9053e2 (patch)
tree4785a67f15d5b39562fee69b155575d21afcb967 /toys/hello.c
parent1f24e8080858e62794ba4d2869a3ae1e383e47e7 (diff)
downloadtoybox-9b3fc7d5e0fe4850c7faa67257231366bf9053e2.tar.gz
Add a hello world applet, partly as an example and partly for testing purposes.
Diffstat (limited to 'toys/hello.c')
-rw-r--r--toys/hello.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/toys/hello.c b/toys/hello.c
new file mode 100644
index 00000000..1f587723
--- /dev/null
+++ b/toys/hello.c
@@ -0,0 +1,12 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * hello.c - A hello world program.
+ */
+
+#include "toys.h"
+
+int hello_main(void)
+{
+ printf("Hello world\n");
+ return 0;
+}