summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);