summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2012-12-26 18:58:31 -0800
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2012-12-26 18:58:31 -0800
commitf3cc2a5154e79afcebed79b9dc85205fdd950043 (patch)
treef4f67a024422401b66c8839f526c9db385d3e001 /common
parentcae2adb75e2b339017746436c63f7d2b8c35fb63 (diff)
parentcce4f773d858a2b131a026fa82136743155ad12b (diff)
downloadxrdp-proprietary-f3cc2a5154e79afcebed79b9dc85205fdd950043.tar.gz
xrdp-proprietary-f3cc2a5154e79afcebed79b9dc85205fdd950043.zip
Merge branch 'master' of https://github.com/FreeRDP/xrdp
Diffstat (limited to 'common')
-rw-r--r--common/os_calls.c13
-rw-r--r--common/os_calls.h2
2 files changed, 15 insertions, 0 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index c8044cba..07f378e5 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -1751,6 +1751,19 @@ g_strlen(const char *text)
}
/*****************************************************************************/
+/* locates char in text */
+char* APP_CC
+g_strchr(const char* text, int c)
+{
+ if (text == NULL)
+ {
+ return 0;
+ }
+
+ return strchr(text,c);
+}
+
+/*****************************************************************************/
/* returns dest */
char *APP_CC
g_strcpy(char *dest, const char *src)
diff --git a/common/os_calls.h b/common/os_calls.h
index 7ecc4699..d4b86365 100644
--- a/common/os_calls.h
+++ b/common/os_calls.h
@@ -172,6 +172,8 @@ g_file_get_size(const char* filename);
int APP_CC
g_strlen(const char* text);
char* APP_CC
+g_strchr(const char* text, int c);
+char* APP_CC
g_strcpy(char* dest, const char* src);
char* APP_CC
g_strncpy(char* dest, const char* src, int len);