Change the FSF address and update LICENSE with the new address and some texts
[MonkeyD.git] / src / include / str.h
blobd18456de1134a35ebc18c1862ea3e8a683284f59
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
3 /* Monkey HTTP Daemon
4 * ------------------
5 * Copyright (C) 2008, Eduardo Silva P.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Library General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 #ifndef MK_STR_H
23 #define MK_STR_H
25 struct mk_string_line
27 char *val;
28 int len;
29 struct mk_string_line *next;
32 char *mk_string_copy_substr(const char *string, int pos_init, int pos_end);
34 int mk_string_char_search(char *string, int c, int n);
35 int _mk_string_search(char *string, char *search, int n);
36 int mk_string_search(char *string, char *search);
37 int mk_string_search_n(char *string, char *search, int n);
38 int mk_string_search_r(char *string, char search, int n);
40 char *mk_string_remove_space(char *buf);
41 char *mk_string_casestr(char *heystack, char *needle);
42 char *mk_string_dup(const char *s);
43 int mk_string_array_count(char *arr[]);
44 struct mk_string_line *mk_string_split_line(char *line);
46 #endif