Update libretro-common

This commit is contained in:
twinaphex 2016-06-06 21:48:59 +02:00
parent ea5f458fbd
commit 4b76f88939
2 changed files with 17 additions and 0 deletions

View File

@ -42,6 +42,8 @@ char *string_to_upper(char *s);
char *string_to_lower(char *s);
char *string_ucwords(char* s);
char *string_replace_substring(const char *in, const char *pattern,
const char *by);

View File

@ -59,6 +59,21 @@ char *string_to_lower(char *s)
return s;
}
char *string_ucwords(char *s)
{
char *cs = (char *)s;
for ( ; *cs != '\0'; cs++)
{
if (*cs == ' ')
{
*(cs+1) = toupper(*(cs+1));
}
}
s[0] = toupper(s[0]);
return s;
}
char *string_replace_substring(const char *in,
const char *pattern, const char *replacement)
{