Debian Codegraph @

src/str_util.h

raw
1 /**
2 * Header for strings functions
3
4 * Copyright (C) 2005, 2007, 2008, 2009 Sylvain Beucler
5
6 * This file is part of GNU FreeDink
7
8 * GNU FreeDink is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 3 of the
11 * License, or (at your option) any later version.
12
13 * GNU FreeDink is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see
20 * <http://www.gnu.org/licenses/>.
21 */
22
23 #ifndef _STRING_UTIL_H
24 #define _STRING_UTIL_H
25
26 extern void strtoupper(char *s);
27 extern void strcpy_nooverlap(char *dst, char* src);
28 extern int asprintf_append(char **strp, const char* fmt, ...);
29 extern void reverse(char *st);
30 extern void strchar(char *string, char ch);
31 extern char* separate_string (char* str, int num, char sep);
32 extern char* get_word(char* line, int word);
33 extern /*bool*/int compare(char *orig, char *comp);
34 extern void replace(const char* find, const char* repl, char** line_p);
35 extern void replace_norealloc(const char* find, const char* repl, char* line);
36 extern char* latin1_to_utf8(char* source);
37
38 #endif