diff options
author | 2023-02-04 01:48:29 +0100 | |
---|---|---|
committer | 2023-02-04 01:48:29 +0100 | |
commit | 2d51bed54445c15086edb413156d2388ce597c24 (patch) | |
tree | eeaabccfbe4a01752f47f45404ba50572e0ef38e /src | |
parent | 8ca441830f36111943860a98a21c736d4087bb2e (diff) | |
download | log-2d51bed54445c15086edb413156d2388ce597c24.tar.gz log-2d51bed54445c15086edb413156d2388ce597c24.zip |
Add function to get library version
Diffstat (limited to 'src')
-rw-r--r-- | src/log.c | 6 | ||||
-rw-r--r-- | src/log.h | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -15,6 +15,12 @@ #define BUFF_SIZE 256 #define HALF_SIZE (BUFF_SIZE / 2 - 1) +char * +loglibver(void) +{ + return LIBVER; +} + /* Checks if the terminal supports colors */ static int check_term_colors() @@ -20,5 +20,6 @@ int log_is_error(Log *); int log_is_info(Log *); int log_is_warn(Log *); +char *loglibver(void); #endif /* __LOG_H__ */ |