Jump to content

#pragma Data Shouldn't Append Null To End Of Strin

Recommended Posts

in order to conform with the MPASM de linker command, I believe this should not append a NULL to the end of the sting. If you want a null, I think you should add it explicitly with a \0, since there's no way to specify a string w/o nulls.


what do you guys think?

Link to post
Share on other sites
the problem is that that's the only way to place data at a particular address...


No you are wrong. Check the BoostC help. You can use plain numbers in pragma DATA and than no zeroes will be appended.




Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...