OpenVAS Libraries  9.0.1
openvas_string.h
Go to the documentation of this file.
1 /* openvas-libraries/base
2  * $Id$
3  * Description: String utilities.
4  *
5  * Authors:
6  * Matthew Mundell <matt@mundell.ukfsn.org>
7  * Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>
8  *
9  * Copyright:
10  * Copyright (C) 2009 Greenbone Networks GmbH
11  *
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version 2
15  * of the License, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
25  */
26 
27 #ifndef _OPENVAS_LIBRARIES_STRING_H
28 #define _OPENVAS_LIBRARIES_STRING_H
29 
30 #include <glib.h>
31 
32 typedef gchar *string;
33 
34 void openvas_append_string (string *, const gchar *);
35 void openvas_append_text (string *, const gchar *, gsize);
36 void openvas_free_string_var (string *);
37 
38 char *openvas_strip_space (char *, char *);
39 
40 #endif /* not _OPENVAS_LIBRARIES_STRING_H */
char * openvas_strip_space(char *, char *)
"Strip" space and newline characters from either end of some memory.
Definition: openvas_string.c:144
void openvas_append_text(string *, const gchar *, gsize)
Append a string of a known length to a string variable.
Definition: openvas_string.c:102
void openvas_append_string(string *, const gchar *)
Append a string to a string variable.
Definition: openvas_string.c:72
gchar * string
Definition: openvas_string.h:32
void openvas_free_string_var(string *)
Free a string variable.
Definition: openvas_string.c:123