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

List:       git
Subject:    Re: [PATCH v4 05/17] strbuf: add strbuf_isspace()
From:       Eric Sunshine <sunshine () sunshineco ! com>
Date:       2014-01-31 3:09:58
Message-ID: CAPig+cRutsBug5cg+Xb-4uxJyAKYz+n4ri80KTmu+kzq67opDg () mail ! gmail ! com
[Download RAW message or body]

On Thu, Jan 30, 2014 at 1:49 AM, Christian Couder
<chriscool@tuxfamily.org> wrote:
> This helper function checks if a strbuf
> contains only space chars or not.
>
> Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
> ---
> diff --git a/strbuf.h b/strbuf.h
> index 73e80ce..02bff3a 100644
> --- a/strbuf.h
> +++ b/strbuf.h
> @@ -42,6 +42,7 @@ static inline void strbuf_setlen(struct strbuf *sb, size_t len) {
>  extern void strbuf_trim(struct strbuf *);
>  extern void strbuf_rtrim(struct strbuf *);
>  extern void strbuf_ltrim(struct strbuf *);
> +extern int strbuf_isspace(struct strbuf *);

Updating Documentation/technical/api-strbuf.txt to mention this new
function would be appropriate.

>  extern int strbuf_cmp(const struct strbuf *, const struct strbuf *);
>
>  /*
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

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