2007-01-25 23:36:38 +01:00
|
|
|
/**
|
2007-03-22 22:50:20 +01:00
|
|
|
* vim: set ts=4 :
|
2007-01-25 23:36:38 +01:00
|
|
|
* ===============================================================
|
|
|
|
* SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
|
|
|
|
* ===============================================================
|
|
|
|
*
|
|
|
|
* This file is not open source and may not be copied without explicit
|
|
|
|
* written permission of AlliedModders LLC. This file may not be redistributed
|
|
|
|
* in whole or significant part.
|
|
|
|
* For information, see LICENSE.txt or http://www.sourcemod.net/license.php
|
|
|
|
*
|
|
|
|
* Version: $Id$
|
|
|
|
*/
|
|
|
|
|
2006-12-29 04:21:09 +01:00
|
|
|
#ifndef _INCLUDE_SOURCEMOD_STRINGUTIL_H_
|
|
|
|
#define _INCLUDE_SOURCEMOD_STRINGUTIL_H_
|
|
|
|
|
|
|
|
#include <math.h>
|
|
|
|
#include "sp_vm_api.h"
|
2006-12-30 08:23:17 +01:00
|
|
|
#include "sp_typeutil.h"
|
2006-12-29 04:21:09 +01:00
|
|
|
|
|
|
|
using namespace SourcePawn;
|
|
|
|
|
2007-01-27 04:25:34 +01:00
|
|
|
#define LANG_SERVER 0
|
|
|
|
|
2007-03-07 00:59:25 +01:00
|
|
|
#define IS_STR_FILLED(var) (var[0] != '\0')
|
|
|
|
|
2006-12-29 04:21:09 +01:00
|
|
|
size_t atcprintf(char *buffer, size_t maxlen, const char *format, IPluginContext *pCtx, const cell_t *params, int *param);
|
2006-12-30 00:28:44 +01:00
|
|
|
const char *stristr(const char *str, const char *substr);
|
2006-12-30 08:23:17 +01:00
|
|
|
unsigned int strncopy(char *dest, const char *src, size_t count);
|
2007-01-07 09:47:38 +01:00
|
|
|
size_t gnprintf(char *buffer, size_t maxlen, const char *format, void **args);
|
2007-01-07 02:30:28 +01:00
|
|
|
size_t UTIL_Format(char *buffer, size_t maxlength, const char *fmt, ...);
|
2007-04-05 07:25:11 +02:00
|
|
|
size_t UTIL_FormatArgs(char *buffer, size_t maxlength, const char *fmt, va_list ap);
|
2007-02-16 08:48:38 +01:00
|
|
|
char *sm_strdup(const char *str);
|
2006-12-29 04:21:09 +01:00
|
|
|
|
|
|
|
#endif // _INCLUDE_SOURCEMOD_STRINGUTIL_H_
|