Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5361

in sprintf iam not getting correct value

$
0
0

 

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


Viewing all articles
Browse latest Browse all 5361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>