Re: weird strncmp usage?
- From
- Florian Weimer <fw@deneb.enyo.de>
- Date
- Nov 3, 2006, 21:05 UTC
- Message-ID
- <8764dwb5ro.fsf@mid.deneb.enyo.de>
- In-Reply-To
- <45494D84.2060402@shadowen.org>
* Andy Whitcroft:
> If you are doing these a _lot_ then there is a significant additional > cost to using strlen on a constant string.
strlen has been a GCC builtin for quite some time. If the wrapper function is inlined, GCC will optimize it away. (It also turns the