Thanks!

I'm sorry. There is a mistake in the last email.
In fact, I means that when the length of an string is 6 or 7, 
requests->requestvb->val.val_len != strlen(requests->requestvb->val.string).





在 2011-12-19 23:20:38,"Dave Shield" <d.t.shi...@liverpool.ac.uk> 写道:
>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



------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to