From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.lixom.net (lixom.net [66.141.50.11]) by ozlabs.org (Postfix) with ESMTP id BDAE767A77 for ; Wed, 22 Mar 2006 05:45:56 +1100 (EST) Date: Tue, 21 Mar 2006 12:43:58 -0600 To: Andreas Schwab Subject: Re: [PATCH 8/11] powerpc: Add strne2a() to convert a string from EBCDIC to ASCII Message-ID: <20060321184358.GB5248@pb15.lixom.net> References: <1142934351.193140.181086235013.qpush@concordia> <20060321094637.C86EE67BBB@ozlabs.org> <20060321181105.GA5248@pb15.lixom.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: From: Olof Johansson Cc: Michael Ellerman , Paul Mackerras , linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Mar 21, 2006 at 07:32:39PM +0100, Andreas Schwab wrote: > Olof Johansson writes: > > > Why iterate over the string twice? Why not do > > for (..; i < n && src[n]; ...) > > ITYM i < n && src[i]. Doh, right. -Olof