Example #1
0
/**
 * Find character string in string.
 */
size_t string_find_cstr(const string_t* cpstr_string, const char* s_cstr, size_t t_pos)
{
    size_t t_findpos = NPOS;

    _basic_string_pop_back((string_t*)cpstr_string);
    t_findpos = basic_string_find_cstr(cpstr_string, s_cstr, t_pos);
    basic_string_push_back((string_t*)cpstr_string, '\0');

    return t_findpos;
}
Example #2
0
/**
 * Find character string in string.
 */
size_t string_find_cstr(const string_t* cpstr_string, const char* s_cstr, size_t t_pos)
{
    return basic_string_find_cstr(cpstr_string, s_cstr, t_pos);
}