My GOD!!!
You are right!
Maybe I need have a rest these days.
Actually, NumberTemp is defined as "long *NumberTemp".
So:
       NumberTemp=(long *)request->requestvb->val.integer;
       printf("\nNumberTemp=%d\n", *NumberTemp);
is OK.
Thank you very much!
Thanks to all!!
 
On 8/30/06, Dave Shield <[EMAIL PROTECTED] > wrote:
On 30/08/06, Zhang Chuan < [EMAIL PROTECTED]> wrote:
>    NumberTemp=(int *)request->requestvb->val.integer;
NumberTemp = (int) *request->requestvb->val.integer;


>        printf("\nNumberTemp=%d\n", NumberTemp);

This is currently printing the *address* of the value, not the value itself.

Dave



--
you jump, I jump,she jump 3
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to