Quantcast
Channel: MPLAB XC16
Viewing all articles
Browse latest Browse all 1508

snprintf doesn't honour buffer length. (james.fenech)

$
0
0
Hello, I am using XC16 v1.11 to compile some PIC24 code. In this I am using snprintf to limit the length of the output string. Example: void main ( void) { static char sBuffer ; static UINT16_ sCnt; sCnt = snprintf ( sBuffer, 5, "1234567890"); } When run,..

Viewing all articles
Browse latest Browse all 1508

Trending Articles



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