On 24 February 2011 01:33, Robert Story <[email protected]> wrote:
> On Tue, 08 Feb 2011 09:36:47 -0800 Wes wrote:
> WH> Actually, the patch didn't apply cleanly for some reason.  So in the
> WH> process of creating a new one I changed it from sizeof(foo)-1 to
> WH> strlen(foo) which I think is the "true" way to do it.
>
> running strlen on a static string every time? blech.

Wouldn't the compiler typically recognise this as a constant value,
and optimise out the strlen call?

Dave

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to