Merge pull request #44 from Osirium/pull/add-strchr
Add g_strchr to os_calls
This commit is contained in:
commit
6e7f9caea3
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user