From 4c8ffafc9aad2397f6ccf7b5cb18520ce6bd231c Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Sat, 2 Apr 2005 20:54:54 +0000 Subject: [PATCH] added strncmp --- common/os_calls.c | 8 +++++++- common/os_calls.h | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) 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);