From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 582FB6DE0FC5 for ; Thu, 30 Aug 2018 04:30:09 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[AWL=0.012, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mi_Q6N_tOELn for ; Thu, 30 Aug 2018 04:30:08 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id F10256DE0BA5 for ; Thu, 30 Aug 2018 04:29:51 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1fvL95-0007Hg-0M; Thu, 30 Aug 2018 07:29:51 -0400 Received: (nullmailer pid 12141 invoked by uid 1000); Thu, 30 Aug 2018 11:29:32 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 13/15] util/string-util: export skip_space Date: Thu, 30 Aug 2018 08:29:13 -0300 Message-Id: <20180830112915.11761-14-david@tethera.net> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180830112915.11761-1-david@tethera.net> References: <20180830112915.11761-1-david@tethera.net> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2018 11:30:09 -0000 It's only few lines, but we already define the function, so make it usable elsewhere --- util/string-util.c | 2 +- util/string-util.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/util/string-util.c b/util/string-util.c index b0108811..fc2058e0 100644 --- a/util/string-util.c +++ b/util/string-util.c @@ -141,7 +141,7 @@ make_boolean_term (void *ctx, const char *prefix, const char *term, return 0; } -static const char* +const char* skip_space (const char *str) { while (*str && isspace ((unsigned char) *str)) diff --git a/util/string-util.h b/util/string-util.h index 97770614..4c110a20 100644 --- a/util/string-util.h +++ b/util/string-util.h @@ -77,6 +77,8 @@ unsigned int strcase_hash (const void *ptr); void strip_trailing (char *str, char ch); +const char* skip_space (const char *str); + #ifdef __cplusplus } #endif -- 2.18.0