2011/12/19 雷哲 <nets...@163.com>:
> I find that var_len != sizeof(var.string) when var_len==6 or var_len==7,
> I think that is a bug. Is it?

No.

   var.string is a pointer to char - so will always be either 4 or 8 bytes
(depending on whether this is a 32-bit or 64-bit systems).

'var_len' is the *length* of the string that this pointer refers to.
This can be anything from 0 to 2^32 characters long.

It would be relatively unusual for var_len to be the same as
sizeof(var.string) - except in very specific circumstances.

Dave

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to