[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [RFC/PATCH v3 5/8] libbb: add a comment describing the way is_prefixed_with() works
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2015-08-25 13:04:38
Message-ID: CAK1hOcMt4n6FohBsecAPh8gS2W3_coTG29w+KT+isj+UjxDDpw () mail ! gmail ! com
[Download RAW message or body]

Applied, thanks!

On Tue, Aug 25, 2015 at 1:10 PM, Bartosz Golaszewski
<bartekgola@gmail.com> wrote:
> Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
> ---
>  libbb/compare_string_array.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/libbb/compare_string_array.c b/libbb/compare_string_array.c
> index eb754af..901e61a 100644
> --- a/libbb/compare_string_array.c
> +++ b/libbb/compare_string_array.c
> @@ -5,6 +5,11 @@
>
>  #include "libbb.h"
>
> +/*
> + * Return NULL if string is not prefixed with key. Return pointer to the
> + * first character in string after the prefix key. If key is an empty string,
> + * return pointer to the beginning of string.
> + */
>  char* FAST_FUNC is_prefixed_with(const char *string, const char *key)
>  {
>         while (*key != '\0') {
> --
> 2.1.4
>
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic