diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/common.h b/src/common.h index 1d5632f..37c900e 100644 --- a/src/common.h +++ b/src/common.h @@ -1,5 +1,5 @@ /** - * Copyright (C) 2016 Aaron Ball <nullspoon@oper.io> + * Copyright (C) 2021 Aaron Ball <nullspoon@oper.io> * * Noteless is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,13 +14,17 @@ * You should have received a copy of the GNU General Public License * along with noteless. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef noteless_common +#define noteless_common + +#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> +#include <libgen.h> -#ifndef noteless_common -#define noteless_common +char* trim(char*); void get_user_editor(char*); @@ -32,14 +36,8 @@ int get_extension(char*, char*); int file_edit(char*, char*); -int basename(char*, char*); - int str_contains(char*, char*, int); -int str_contains_case_sensitive(char*, char*); - -int str_contains_case_insensitive(char*, char*); - int strip_extension(char*); #endif |