/* Returns: NULL if the string does not contain the character, otherwise, a pointer to the start of the leftmost occurrence of the character in the string.  */
gchar* g_utf8_strchr(const char *p, gssize len, gunichar c)
/* Returns: NULL if the string does not contain the character, otherwise, a pointer to the start of the leftmost occurrence of the character in the string.  */
gchar* g_utf8_strchr(const char *p, gssize len, gunichar c)
{
  gchar ch[10];
  gint charlen = g_unichar_to_utf8 (c, ch);
  ch[charlen] = '\0';
  return g_strstr_len (p, len, ch);
}