/* Search a character in the given string. Returns a pointer to the character location.  */
char* strchr(const char *pString, int character)
/* Search a character in the given string. Returns a pointer to the character location.  */
char* strchr(const char *pString, int character)
{
    char * p = (char *)pString;
    char   c = character & 0xFF;
    while(*p != c) {
        if (*p == 0) {
            return 0;
        }
        p++;
    }
    return p;
}