LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

in sprintf iam not getting correct value

 

char msg[256];

unsigned short int  tempp8=0xffff;

 

 

 

sprintf (msg, "Checksum: %u ",tempp8); 
WriteLine (iFile, msg, -1);

 

 

 

while run the program the msg value get wrong data

msg=34085812

0 Kudos
Message 1 of 3
(4,497 Views)

Just tried your code and if works as expected on a Win7 machine with CVI2012SP1.

Which system are you running it on? Which CVI release are you using?



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(4,489 Views)

SORRY SIR ..I GOT RESULT...

FIRST TIME AM CODING, I DINT PUT BREAK POINT IN THAT POINT.

 

 

 

THANK YOU

0 Kudos
Message 3 of 3
(4,477 Views)