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.
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.