X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fheaders%2Fstring_op.h;fp=src%2Fheaders%2Fstring_op.h;h=2df963e1c8aa200765066d3cacbf1dd4b6de58d8;hp=0000000000000000000000000000000000000000;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=301048b51990573e58a30dc4a5bb4ec285cad554 diff --git a/src/headers/string_op.h b/src/headers/string_op.h new file mode 100755 index 0000000..2df963e --- /dev/null +++ b/src/headers/string_op.h @@ -0,0 +1,34 @@ +/* @(#) $Id: ./src/headers/string_op.h, 2011/09/08 dcid Exp $ + */ + +/* Copyright (C) 2009 Trend Micro Inc. + * All rights reserved. + * + * This program is a free software; you can redistribute it + * and/or modify it under the terms of the GNU General Public + * License (version 2) as published by the FSF - Free Software + * Foundation + * + * License details at the LICENSE file included with OSSEC or + * online at: http://www.ossec.net/en/licensing.html + */ + + +#ifndef H_STRINGOP_OS +#define H_STRINGOP_OS + + +/** os_trimcrlf + * Trims the cr and/or LF from the last positions of a string + */ +void os_trimcrlf(char *str); + +/* Similiar to Perl's substr() function */ +int os_substr(char *dest, const char *src, int position, int length); + +/* Remove a character from a string */ +char *os_strip_char(char *source, char remove); + +#endif + +/* EOF */