[PATCH 8/11] powerpc: Add strne2a() to convert a string from EBCDIC to ASCII

Michael Ellerman michael at ellerman.id.au
Wed Mar 22 10:25:40 EST 2006


On Wed, 22 Mar 2006 05:43, Olof Johansson wrote:
> On Tue, Mar 21, 2006 at 07:32:39PM +0100, Andreas Schwab wrote:
> > Olof Johansson <olof at lixom.net> writes:
> > > Why iterate over the string twice? Why not do
> > > 	for (..; i < n && src[n]; ...)
> >
> > ITYM i < n && src[i].
>
> Doh, right.

That's why :)

-- 
Michael Ellerman
IBM OzLabs

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20060322/42ff6805/attachment.pgp>


More information about the Linuxppc-dev mailing list