diff options
author | 2023-02-03 22:41:09 +0100 | |
---|---|---|
committer | 2023-02-03 22:41:09 +0100 | |
commit | ee986164d354f4d7094f7e0fb4fcea31170f5661 (patch) | |
tree | 49d2521a53f91378786cf98107a20234077b27ca /test | |
parent | c0683663affb71091d7952575f3ee06e30bf9259 (diff) | |
download | string2-ee986164d354f4d7094f7e0fb4fcea31170f5661.tar.gz string2-ee986164d354f4d7094f7e0fb4fcea31170f5661.zip |
Add function to get libraryversion
Diffstat (limited to 'test')
-rw-r--r-- | test/main.c | 1 | ||||
-rw-r--r-- | test/test1.c | 7 | ||||
-rw-r--r-- | test/test1.h | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/test/main.c b/test/main.c index f6be903..25e1993 100644 --- a/test/main.c +++ b/test/main.c @@ -7,6 +7,7 @@ main(int argc, char **argv) { test1(); test2(); + test3(); return 0; } diff --git a/test/test1.c b/test/test1.c index 777aa5f..3f52c93 100644 --- a/test/test1.c +++ b/test/test1.c @@ -30,3 +30,10 @@ test2(void) printf("OK\n"); } + +void +test3() +{ + printf("executing %s... OK\n", __func__); + printf("%s\n", strlibver()); +} diff --git a/test/test1.h b/test/test1.h index 1b88561..79bab4c 100644 --- a/test/test1.h +++ b/test/test1.h @@ -5,5 +5,6 @@ void test1(void); void test2(void); +void test3(void); #endif /* __TEST1_H__ */ |