• The "sizeof operator with string" bug when use command line in "output window"
    I do not speak english,so i try to show my meaning When you use command line in debug mode, sizeof("a") //value is 1 sizeof('a') //value is 2 would got wrong value. seems been upended. ...
  • The "sizeof operator with string" bug when use command line in "output window"
    I do not speak english,so i try to show my meaning When you use command line in debug mode, sizeof("a") //value is 1 sizeof('a') //value is 2 would got wrong value. seems been upended. ...
  • 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...