Triggering build.
3 * ======================================================
5 * Copyright (C) 2004-2008 AlliedModders LLC and authors.
7 * ======================================================
9 * This software is provided 'as-is', without any express or implied warranty.
10 * In no event will the authors be held liable for any damages arising from
11 * the use of this software.
13 * Permission is granted to anyone to use this software for any purpose,
14 * including commercial applications, and to alter it and redistribute it
15 * freely, subject to the following restrictions:
17 * 1. The origin of this software must not be misrepresented; you must not
18 * claim that you wrote the original software. If you use this software in a
19 * product, an acknowledgment in the product documentation would be
20 * appreciated but is not required.
21 * 2. Altered source versions must be plainly marked as such, and must not be
22 * misrepresented as being the original software.
23 * 3. This notice may not be removed or altered from any source distribution.
28 #ifndef _INCLUDE_METAMOD_SOURCE_LOADER_UTILITY_H_
29 #define _INCLUDE_METAMOD_SOURCE_LOADER_UTILITY_H_
34 mm_Format(char *buffer, size_t maxlength, const char *fmt, ...);
37 mm_LoadLibrary(const char *path, char *buffer, size_t maxlength);
40 mm_GetLibAddress(void *lib, const char *name);
43 mm_UnloadLibrary(void *lib);
46 mm_ResolvePath(const char *path, char *buffer, size_t maxlength);
49 mm_PathFormat(char *buffer, size_t len, const char *fmt, ...);
52 mm_TrimLeft(char *buffer);
55 mm_TrimRight(char *buffer);
58 mm_TrimComments(char *buffer);
61 mm_KeySplit(const char *str, char *buf1, size_t len1, char *buf2, size_t len2);
64 mm_PathCmp(const char *path1, const char *path2);
67 mm_GetFileOfAddress(void *pAddr, char *buffer, size_t maxlength);
69 #endif /* _INCLUDE_METAMOD_SOURCE_LOADER_UTILITY_H_ */