Quantcast
Channel: MPLAB XC32
Viewing all articles
Browse latest Browse all 1537

printf - unsigned char?? (purplepig)

$
0
0
Hi,I'm having great troulble using unsigned char values in sprintf(), the come out wrong.I've tried %i, %d, %u, no luck.I've also tried casting as an int, like this:sprintf(buf, "%i", (int)MyUnit8Value);and I get a compiler error:error: aggregate value us..

Viewing all articles
Browse latest Browse all 1537

Trending Articles



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