|
From: | Paul Eggert |
Subject: | Re: [PATCH] posixtm: avoid compiler warning in a better way |
Date: | Wed, 10 Dec 2014 00:01:05 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
Thien-Thi Nguyen wrote:
+ dot = strchr (s, '.'); Can we use ‘memchr (s, '.', s_len)’ here?
We could, but why bother? The strchr call is easier to understand and makes for less machine code.
[Prev in Thread] | Current Thread | [Next in Thread] |