• String functions in relocatable code, string is fixed in memory
    I have the following code: strcat(tbuf,"\r\nSH B = "); My program memory model is small so I can re-locate the code in any sector. Unfortunately "\r\nSH B = " is fixed at an absolute address. I can...
  • Return Pointer to local string, destroys the string or not?
    This forum may not be the best to ask the question, but the answers on the other forums (that i know) were generally with respect to C for desktop pc (where memory management is different from that in...
  • Return Pointer to local string, destroys the string or not?
    This forum may not be the best to ask the question, but the answers on the other forums (that i know) were generally with respect to C for desktop pc (where memory management is different from that in...
  • String functions in relocatable code, string is fixed in memory
    I have the following code: strcat(tbuf,"\r\nSH B = "); My program memory model is small so I can re-locate the code in any sector. Unfortunately "\r\nSH B = " is fixed at an absolute address. I can...
  • string setup
    in a c-module I found the definition of a string: char acString[20] = ""; For me the initilisation looks a little bit unusual. My questions at this point are: - is this allowed in ansi-c? -...