From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 79579 invoked by alias); 4 Mar 2015 08:45:27 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 79569 invoked by uid 89); 4 Mar 2015 08:45:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-qc0-f179.google.com Received: from mail-qc0-f179.google.com (HELO mail-qc0-f179.google.com) (209.85.216.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 04 Mar 2015 08:45:25 +0000 Received: by qcvs11 with SMTP id s11so864630qcv.7 for ; Wed, 04 Mar 2015 00:45:23 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.140.165.198 with SMTP id l189mr4217077qhl.93.1425458722965; Wed, 04 Mar 2015 00:45:22 -0800 (PST) Received: by 10.229.191.136 with HTTP; Wed, 4 Mar 2015 00:45:22 -0800 (PST) In-Reply-To: <1425388224-8146-1-git-send-email-gbenson@redhat.com> References: <1425388224-8146-1-git-send-email-gbenson@redhat.com> Date: Wed, 04 Mar 2015 08:45:00 -0000 Message-ID: Subject: Re: [PATCH] New common function "startswith" From: Doug Evans To: Gary Benson Cc: "gdb-patches@sourceware.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00116.txt.bz2 On Tue, Mar 3, 2015 at 5:10 AM, Gary Benson wrote: > Hi all, > > This patch introduces a new common function "startswith" which takes > two string arguments and returns nonzero if the first string starts > with the second. It also updates the 180 places where this logic was > written out longhand to use the new function. Awesome! Thanks for doing this.