summaryrefslogtreecommitdiff
path: root/src/common.h
blob: 37c900e95efa9c359446496e77af5b73d554f0bc (plain)
    1 /**
    2  * Copyright (C) 2021 Aaron Ball <nullspoon@oper.io>
    3  *
    4  * Noteless is free software: you can redistribute it and/or modify
    5  * it under the terms of the GNU General Public License as published by
    6  * the Free Software Foundation, either version 3 of the License, or
    7  * (at your option) any later version.
    8  *
    9  * Noteless is distributed in the hope that it will be useful,
   10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12  * GNU General Public License for more details.
   13  *
   14  * You should have received a copy of the GNU General Public License
   15  * along with noteless.  If not, see <http://www.gnu.org/licenses/>.
   16  */
   17 #ifndef noteless_common
   18 #define noteless_common
   19 
   20 #define _GNU_SOURCE
   21 #include <stdio.h>
   22 #include <stdlib.h>
   23 #include <string.h>
   24 #include <time.h>
   25 #include <libgen.h>
   26 
   27 char* trim(char*);
   28 
   29 void get_user_editor(char*);
   30 
   31 int itoc(int, char*);
   32 
   33 void get_current_date_time(char*);
   34 
   35 int get_extension(char*, char*);
   36 
   37 int file_edit(char*, char*);
   38 
   39 int str_contains(char*, char*, int);
   40 
   41 int strip_extension(char*);
   42 
   43 #endif

Generated by cgit