This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

sprintf conversion problems

Why does sprintf generate a Null when sprinting extended character 253(decimal) in to a a string variable?

i.e.


sprintf(s,"%s","ý");


If I then look at s in debug the first location is NULL.

All other extended characters appear fine!

Parents Reply Children
  • All,

    Thanks for the suggestions.

    First time I've used the Discussion Forum and it's been a great help!

    I have tried Mike's solution and that works.

    Andrew, yes it definitely put the hex value 0xFD in to the string.

    Drew, I entered the code using Alt 0253 (in uV2) or Alt 253 (in uV1).

    Steve