mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7
37 lines
944 B
C
37 lines
944 B
C
/* +------------------------------------+
|
|
* | Inspire Internet Relay Chat Daemon |
|
|
* +------------------------------------+
|
|
*
|
|
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
|
|
* See: http://www.inspircd.org/wiki/index.php/Credits
|
|
*
|
|
* This program is free but copyrighted software; see
|
|
* the file COPYING for details.
|
|
*
|
|
* ---------------------------------------------------
|
|
*/
|
|
|
|
#ifndef __IN_INSPSTRING_H
|
|
#define __IN_INSPSTRING_H
|
|
|
|
#include "inspircd_config.h"
|
|
#include <string.h>
|
|
#include <cstddef>
|
|
|
|
#ifndef HAS_STRLCPY
|
|
CoreExport size_t strlcpy(char *dst, const char *src, size_t siz);
|
|
CoreExport size_t strlcat(char *dst, const char *src, size_t siz);
|
|
#endif
|
|
|
|
CoreExport int charlcat(char* x,char y,int z);
|
|
CoreExport bool charremove(char* mp, char remove);
|
|
inline char * strnewdup(const char * s1)
|
|
{
|
|
size_t len = strlen(s1) + 1;
|
|
char * p = new char[len];
|
|
memcpy(p, s1, len);
|
|
return p;
|
|
}
|
|
|
|
#endif
|