summaryrefslogtreecommitdiff
path: root/library/hello.c
diff options
context:
space:
mode:
Diffstat (limited to 'library/hello.c')
-rw-r--r--library/hello.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/library/hello.c b/library/hello.c
new file mode 100644
index 0000000..b5f3dae
--- /dev/null
+++ b/library/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");
+}