RE: How do I return negative (signed) values from var_

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; Negatives is possible if object type is integer32 , generic function used to return value does preserve negative value and you ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-09-2005
 
Posts: n/a
Default RE: How do I return negative (signed) values from var_

Negatives is possible if object type is integer32 , generic function
used to return value does preserve negative value and you should be able
to see negative value on query. I tried it and it works. Using unsigned
char * for return is to make framework generic I guess, which does not
make loss or modification of values. Am I right?

-----Original Message-----
From: net-snmp-coders-admin@lists.sourceforge.net
[mailto:net-snmp-coders-admin@lists.sourceforge.net] On Behalf Of Asim
Zaka
Sent: Wednesday, November 09, 2005 2:22 PM
To: net-snmp-coders@lists.sourceforge.net
Subject: How do I return negative (signed) values from var_

Hello Everybody,

How do I return negative numbers from var_ read function in net-snmp
which
returns unsigned char *?

Regards,
Asim Pervez Zaka.



-------------------------------------------------------
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


-------------------------------------------------------
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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:14 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0