summaryrefslogtreecommitdiff
path: root/appnlib/hello.c
diff options
context:
space:
mode:
authorManuel Traut <manut@linutronix.de>2016-05-18 15:48:35 +0200
committerManuel Traut <manut@linutronix.de>2016-05-18 15:48:35 +0200
commit2269acccfb754c9c326c45b15aeabdecbca7b775 (patch)
tree4f5fce7895126613c037e6d6e127dbea28848f21 /appnlib/hello.c
parentc64c0e81c354a2795503aae3bc6352dc0a63d15a (diff)
add autotools stuff from bene
Signed-off-by: Manuel Traut <manut@linutronix.de>
Diffstat (limited to 'appnlib/hello.c')
-rw-r--r--appnlib/hello.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/appnlib/hello.c b/appnlib/hello.c
new file mode 100644
index 0000000..b5f3dae
--- /dev/null
+++ b/appnlib/hello.c
@@ -0,0 +1,10 @@
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
+#include <stdio.h>
+
+int print_hello (char *name)
+{
+ return printf ("Hello %s!\n", (name) ? name : "world");
+}