1 /*
2     Numdiff - compare putatively similar files,
3     ignoring small numeric differences
4     Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017  Ivano Primi  <ivprimi@libero.it>
5 
6     This program is free software: you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation, either version 3 of the License, or
9     (at your option) any later version.
10 
11     This program is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15 
16     You should have received a copy of the GNU General Public License
17     along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #define I_DEF_SEP ' '
21 #define DEF_IFS   "\\s \\t \\n"
22 #define NEWLINE_STR "\n"
23 
24 char** ssplit (const char* str, char separator);
25 char** ssplit_former_way (const char* str);
26 void print_string_vector (FILE* fp, const char** sv, char separator);
27 void sort_string_vector (char** sv);
28 void remove_duplicates_from_string_vector (char** sv);
29 int is_string_in_vector (const char* str, const char** sv);
30 size_t is_char_in_vector (int ch, const char** sv);
31 void delete_string_vector (char** sv);
32 
33 char* get_separating_string (const char* istr);
34 char* string_cspn (const char* str, const char** svi, int eos);
35 char* string_spn (const char* str, const char** svi, int eos);
36