aboutsummaryrefslogtreecommitdiff
path: root/04_dynld_nostd/libgreet.c
diff options
context:
space:
mode:
Diffstat (limited to '04_dynld_nostd/libgreet.c')
-rw-r--r--04_dynld_nostd/libgreet.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/04_dynld_nostd/libgreet.c b/04_dynld_nostd/libgreet.c
index f2a96a3..439e236 100644
--- a/04_dynld_nostd/libgreet.c
+++ b/04_dynld_nostd/libgreet.c
@@ -1,9 +1,13 @@
// Copyright (c) 2020 Johannes Stoelp
+int gCalled = 0;
+
const char* get_greet() {
+ ++gCalled;
return "Hello from libgreet.so!";
}
const char* get_greet2() {
+ ++gCalled;
return "Hello 2 from libgreet.so!";
}