From: Florian Weimer Date: Fri, 03 Nov 2006 21:05:15 GMT Subject: Re: weird strncmp usage? 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