From 53a32c2aeb0e1f95ecbe5693e6c297495f5bba80 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Tue, 14 Mar 2023 18:17:23 +0100 Subject: Generify the function to get the version --- src/version.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/version.c (limited to 'src/version.c') diff --git a/src/version.c b/src/version.c new file mode 100644 index 0000000..9255e7c --- /dev/null +++ b/src/version.c @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2022-2023 Alessandro Iezzi + * + * This file is part of libutils. + * + * libutils is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * libutils is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with libutils. If not, see . + */ + +char * +utils_version() +{ + return VERSION; +} -- cgit v1.2.3