Add g_strchr to os_calls

This commit is contained in:
LawrenceK 2012-12-20 07:02:41 +00:00
parent d1fc67102a
commit a52dbba1a5
2 changed files with 15 additions and 0 deletions

View File

@ -1750,6 +1750,19 @@ g_strlen(const char *text)
return strlen(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

View File

@ -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);