Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20562

BASCOM-AVR : str too big : REPLY

$
0
0
[quote:52929741fa="njepsen"]What happens if I do this [code:1:52929741fa] dim error_msg as string*200 [/code:1:52929741fa] and err_msg ends up being >199 bytes?[/quote:52929741fa] If the string has to hold > 199 chars - it depends. Say 200 chars, nothing unusual will happen. Dimensioning a string with 200 chars will reserve 201 bytes in memory, as one byte for the string terminator is included. More interesting things will only happen, if more than 200 chars are written into.

Viewing all articles
Browse latest Browse all 20562

Trending Articles



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