From ee986164d354f4d7094f7e0fb4fcea31170f5661 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Fri, 3 Feb 2023 22:41:09 +0100 Subject: Add function to get libraryversion --- test/main.c | 1 + test/test1.c | 7 +++++++ test/test1.h | 1 + 3 files changed, 9 insertions(+) (limited to 'test') 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__ */ -- cgit v1.2.3