This is a discussion on Re: How do I return negative (signed) values from var_ within the SNMP Coders forums, part of the Networking and Network Related category; On Wed, 2005-11-09 at 10:51 +0200, Asim Zaka wrote: > How do I return negative numbers from ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Wed, 2005-11-09 at 10:51 +0200, Asim Zaka wrote:
> How do I return negative numbers from var_ read function in net-snmp Which particular function(s) are you referring to? > which returns unsigned char *? In general, 'unsigned char *' is used as a pointer to generic data (as Amber guessed correctly), and would typically be cast to the appropriate type. Or if you're working with a netsnmp_variable_list structure, then use the appropriate field of the 'val' union It's impossible to be more specific without knowing which function(s) you're looking at. Dave ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |
![]() |
| Thread Tools | |
| Display Modes | |
|
|