3 * ======================================================
4 * Metamod:Source Stub Plugin
5 * Written by AlliedModders LLC.
6 * ======================================================
8 * This software is provided 'as-is', without any express or implied warranty.
9 * In no event will the authors be held liable for any damages arising from
10 * the use of this software.
12 * This stub plugin is public domain.
17 #ifndef _INCLUDE_STUB_UTIL_FUNCTIONS_H_
18 #define _INCLUDE_STUB_UTIL_FUNCTIONS_H_
23 * This is a platform-safe function which fixes weird idiosyncracies
24 * in the null-termination and return value of snprintf(). It guarantees
25 * the terminator on overflow cases, and never returns -1 or a value
26 * not equal to the number of non-terminating bytes written.
28 size_t UTIL_Format(char *buffer, size_t maxlength, const char *fmt, ...);
30 #endif //_INCLUDE_STUB_UTIL_FUNCTIONS_H_