On Thu, Feb 24, 2011 at 12:01:32AM +0100, Magnus Fromreide wrote:
> There is the third option as well:
> 
>           "%" NETSNMP_PRIz "u", LENGTH_something
> 
> The drawback is that it is even longer but the advantage is that it is
> correct on both 32 and 64-bit platforms, but then, so are the other two
> versions if LENGTH_something is sufficiently small.

I probably still suffer from old times where you never could be sure
whether size_t was signed or unsigned (that was before they invented
ssize_t)

char still suffers from that problem.

I think the gcc 2.95.3 I still have on a Solaris 8 system has it as
a signed :-(

/Niels

-- 
Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

------------------------------------------------------------------------------
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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to