bug-diffutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-diffutils] bug#33144: bug#33144: Replace some loops with str functi


From: Paul Eggert
Subject: [bug-diffutils] bug#33144: bug#33144: Replace some loops with str functions
Date: Thu, 25 Oct 2018 12:57:10 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

On 10/24/18 4:06 PM, Kapus, Timotej wrote:
I find strspn easier to read, communicate intention and has less LOC

On the other hand, it's probably slower for this particular use case, and the replacement code you wrote is not equivalent to the code it replaced because 'c' ends up having a different value.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]