From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 24B341384B4 for ; Wed, 11 Nov 2015 14:41:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 07D1421C041; Wed, 11 Nov 2015 14:41:26 +0000 (UTC) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CE5BB21C037 for ; Wed, 11 Nov 2015 14:41:24 +0000 (UTC) Received: by wmec201 with SMTP id c201so49471709wme.1 for ; Wed, 11 Nov 2015 06:41:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=ZsJTkj8VA4pJpmOrUoA2B9xQmn3mcUY1oRoU+5HiY4o=; b=kY/sEJSUNr0MiMp+iE0fLNA4wfWcAuMkihoVtGKoIxqY3RhZBoCr3In7rveqePPeW/ hpwd3w6ygpj8/aSiKr1FLb+j5q4PMNoqfpJAS7GF5PMQjkQNfqukiDG9blqD2dF8Si83 ZyjzU+9LJAGf0xnvjecmKhvLS2BWNJAiaUgUfnfCQxUO5+YFiZrCCFwmoqzG4grmHtBQ 4nnpNNffj2sAd39Ckk3BaXZnoVHeKh3ea3jq+ZdXt5JfL674VO+AcP03TIpaAkIMio/B I17JFEkUyYOmbvGXg8GF0gyBQA9VAAIxBmzyRrisQ5wbYZFiSGAkSiARxayj6NtDY10F xFZw== X-Received: by 10.28.146.82 with SMTP id u79mr10998309wmd.96.1447252883626; Wed, 11 Nov 2015 06:41:23 -0800 (PST) Received: from [172.29.2.13] ([209.212.109.4]) by smtp.gmail.com with ESMTPSA id lx4sm1024571wjb.5.2015.11.11.06.41.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Nov 2015 06:41:22 -0800 (PST) Subject: Re: [gentoo-user] compare string list and output like diff -u To: gentoo-user@lists.gentoo.org References: <34d2012e.a9ac.150f6b196d9.Coremail.halyx@126.com> From: Alan McKinnon Message-ID: <5643538F.8060006@gmail.com> Date: Wed, 11 Nov 2015 16:41:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <34d2012e.a9ac.150f6b196d9.Coremail.halyx@126.com> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 1cf2864d-0c3f-4014-8d68-d35c3cdc93bc X-Archives-Hash: 86dd78227077604e2db8e1aa2ce3f8bc On 11/11/2015 15:17, Wallance wrote: > Hi,I want to compare two string list and output deltas like the output of > $(diff -u).I want to implement this in C/C++ language.Any suggestions > will be welcome.For better,I want a library which can do this. > Thanks again. > > That's a programming question. This is a mailing list for users of the Gentoo distro so this is far from an ideal place to ask how to do it in C/C++ Rather ask at stackoverflow, you will get much higher quality answers there (and you won;t get flamed for inappropriate questions) Alan