aboutsummaryrefslogtreecommitdiffstats
path: root/tutorial/chapter-9/lib/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'tutorial/chapter-9/lib/lib.c')
-rw-r--r--tutorial/chapter-9/lib/lib.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tutorial/chapter-9/lib/lib.c b/tutorial/chapter-9/lib/lib.c
new file mode 100644
index 000000000..5dcae0de3
--- /dev/null
+++ b/tutorial/chapter-9/lib/lib.c
@@ -0,0 +1,10 @@
+#include "lib.h"
+
+#ifndef CRUCIAL_DEFINE
+# error CRUCIAL_DEFINE not defined
+#endif
+
+const char *get_string()
+{
+ return "Hello from library";
+}