diff --git a/common/os_calls.c b/common/os_calls.c index cbd546c4..c276b4c0 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -60,7 +60,7 @@ #include #endif -//#define MEMLEAK +/*#define MEMLEAK*/ #if defined(_WIN32) static CRITICAL_SECTION g_term_mutex; @@ -975,6 +975,12 @@ int g_strcmp(char* c1, char* c2) return strcmp(c1, c2); } +/*****************************************************************************/ +int g_strncmp(char* c1, char* c2, int len) +{ + return strncmp(c1, c2, len); +} + /*****************************************************************************/ long g_load_library(char* in) { diff --git a/common/os_calls.h b/common/os_calls.h index e7c0df40..7bc6bd89 100644 --- a/common/os_calls.h +++ b/common/os_calls.h @@ -83,6 +83,7 @@ char* g_strncpy(char* dest, char* src, int len); char* g_strcat(char* dest, char* src); char* g_strdup(char* in); int g_strcmp(char* c1, char* c2); +int g_strncmp(char* c1, char* c2, int len); long g_load_library(char* in); int g_free_library(long lib); void* g_get_proc_address(long lib, char* name);