--===============0720408390==
Content-Type: multipart/alternative;
boundary="----=_Part_84966_27020343.1156940966468"

------=_Part_84966_27020343.1156940966468
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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 wrote:
>
> On 30/08/06, Zhang Chuan 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

------=_Part_84966_27020343.1156940966468
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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 <.T.Shield@csc.liv.ac.uk" target="_blank">D.T.Shield@csc.liv.ac.uk
> wrote:

On 30/08/06, Zhang Chuan <
chuanzhang@gmail.com> 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

------=_Part_84966_27020343.1156940966468--


--===============0720408390==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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=...057&dat=121642
--===============0720408390==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

--===============0720408390==--