Imported Upstream version 2.7
[ossec-hids.git] / src / headers / string_op.h
1 /* @(#) $Id: ./src/headers/string_op.h, 2011/09/08 dcid Exp $
2  */
3
4 /* Copyright (C) 2009 Trend Micro Inc.
5  * All rights reserved.
6  *
7  * This program is a free software; you can redistribute it
8  * and/or modify it under the terms of the GNU General Public
9  * License (version 2) as published by the FSF - Free Software
10  * Foundation
11  *
12  * License details at the LICENSE file included with OSSEC or
13  * online at: http://www.ossec.net/en/licensing.html
14  */
15
16
17 #ifndef H_STRINGOP_OS
18 #define H_STRINGOP_OS
19
20
21 /** os_trimcrlf
22  * Trims the cr and/or LF from the last positions of a string
23  */
24 void os_trimcrlf(char *str);
25
26 /* Similiar to Perl's substr() function */
27 int os_substr(char *dest, const char *src, int position, int length);
28
29 /* Remove a character from a string */
30 char *os_strip_char(char *source, char remove);
31
32 #endif
33
34 /* EOF */