Re: [PATCH 03/12] Add and use skip_prefix_defval()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]