previous next Up Title Contents Index

char_search()

    char *char_search (char *target_ptr, char ch)
    {
        while ((*target_ptr != ch) && (*target_ptr != '\0'))
        {
            target_ptr++;
        }
        if (*target_ptr == '\0')
        {
            return NULL;
        }
        else
        {
            return target_ptr;
        }
    }

previous next Up Title Contents Index