summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-04-02 20:54:54 +0000
committerjsorg71 <jsorg71>2005-04-02 20:54:54 +0000
commit4c8ffafc9aad2397f6ccf7b5cb18520ce6bd231c (patch)
treee9fa847f94adfb5632a15ced1e0234631976e358 /common
parent272eaf70031061f44595ba068c1e866b92582bec (diff)
downloadxrdp-proprietary-4c8ffafc9aad2397f6ccf7b5cb18520ce6bd231c.tar.gz
xrdp-proprietary-4c8ffafc9aad2397f6ccf7b5cb18520ce6bd231c.zip
added strncmp
Diffstat (limited to 'common')
-rw-r--r--common/os_calls.c8
-rw-r--r--common/os_calls.h1
2 files changed, 8 insertions, 1 deletions
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 <pthread.h>
#endif
-//#define MEMLEAK
+/*#define MEMLEAK*/
#if defined(_WIN32)
static CRITICAL_SECTION g_term_mutex;
@@ -976,6 +976,12 @@ int g_strcmp(char* c1, char* c2)
}
/*****************************************************************************/
+int g_strncmp(char* c1, char* c2, int len)
+{
+ return strncmp(c1, c2, len);
+}
+
+/*****************************************************************************/
long g_load_library(char* in)
{
#if defined(_WIN32)
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);