using functions from string.h
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2010-03-22 11:56 AM
Posted on March 22, 2010 at 19:56
using functions from string.h
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 6:07 AM
Posted on May 17, 2011 at 15:07
Hi,
if you have the problem with several functions there's probably something wrong in your program: please post more details. However, we recently fixed a small problem with the header of memcpy (in string.h): if you use the free version you can get the latest (fixed) here: http://www.cosmicsoftware.com/download_stm8_32k.php If it's a full version, please contact us and we'll set up a private download for you. Regards, Luca (Cosmic)Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 6:07 AM
Posted on May 17, 2011 at 15:07
Hi Luca,
I spent some more time working on this and I had taken out every function call but one (strcat()....just appending a short string to the end of a UART buffer). During debug, I found that my program would still hang on this function call. I ended up changing my memory model to ''Long Stack (+modsl)'' and it seems to work now. Now I have many calls to strcpy() and strcat() in place with no problems. How recent was the fix made to the memcpy header? I'm using the free version....I downloaded it on 3/4/2010. Thanks!Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 6:07 AM
Posted on May 17, 2011 at 15:07
Are you sure that your strings are correctly terminated?
A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
A complex system designed from scratch never works and cannot be patched up to make it work.
