"Kent R. Spillner" <kspill...@acm.org> writes:

> On Wed, Dec 18, 2013 at 09:53:48PM +0700, Nguyễn Thái Ngọc Duy wrote:
>> This is a variant of skip_prefix() that returns a specied pointer
>> instead of NULL if no prefix is found. It's helpful to simplify
>> 
>>   if (starts_with(foo, "bar"))
>>     foo += 3;
>> 
>> into
>> 
>>   foo = skip_prefix_gently(foo, "bar", foo);
>
> Should this be skip_prefix_defval instead of skip_prefix_gently?

Yes.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to