summaryrefslogtreecommitdiff
path: root/src/common.h
blob: 0b63ef757e2a5145311ad72baf8b27e7558932b7 (plain)
    1 /**
    2  * Copyright (C) 2016 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 #include <stdio.h>
   18 #include <stdlib.h>
   19 #include <string.h>
   20 #include <time.h>
   21 
   22 #ifndef noteless_common
   23 #define noteless_common
   24 
   25 char* trim(char*);
   26 
   27 void get_user_editor(char*);
   28 
   29 int itoc(int, char*);
   30 
   31 void get_current_date_time(char*);
   32 
   33 int get_extension(char*, char*);
   34 
   35 int file_edit(char*, char*);
   36 
   37 int basename(char*, char*);
   38 
   39 int str_contains(char*, char*, int);
   40 
   41 int str_contains_case_sensitive(char*, char*);
   42 
   43 int str_contains_case_insensitive(char*, char*);
   44 
   45 int strip_extension(char*);
   46 
   47 #endif

Generated by cgit