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 43A416DE0282 for ; Mon, 30 Jul 2018 15:46:14 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[AWL=0.011, 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 CQFreQ4poYgS for ; Mon, 30 Jul 2018 15:46:13 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 0398F6DE022A for ; Mon, 30 Jul 2018 15:46:11 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1fkGvb-0002BA-5N; Mon, 30 Jul 2018 18:46:11 -0400 Received: (nullmailer pid 28745 invoked by uid 1000); Mon, 30 Jul 2018 22:45:56 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 12/15] util/string-util: export skip_space Date: Tue, 31 Jul 2018 06:45:52 +0800 Message-Id: <20180730224555.26047-13-david@tethera.net> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180730224555.26047-1-david@tethera.net> References: <20180730224555.26047-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: Mon, 30 Jul 2018 22:46:14 -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