1 /* @(#) $Id: ./src/headers/string_op.h, 2011/09/08 dcid Exp $
4 /* Copyright (C) 2009 Trend Micro Inc.
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
12 * License details at the LICENSE file included with OSSEC or
13 * online at: http://www.ossec.net/en/licensing.html
22 * Trims the cr and/or LF from the last positions of a string
24 void os_trimcrlf(char *str);
26 /* Similiar to Perl's substr() function */
27 int os_substr(char *dest, const char *src, int position, int length);
29 /* Remove a character from a string */
30 char *os_strip_char(char *source, char remove);
32 /* Escape a list of characters with a backslash */
33 char *os_shell_escape(const char *src);