strcat adding characters on SAM3x8e
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I am using 32 bit SAM3x8e processor and need to concatenate two strings declared as char arrays. I am reading the results on LCD and I get the concatenated "string" OK followed what appears as 4 spaces. LCD "prints" space as blank character. Now strcat suppose to add trailing null, but I am getting some extras. The compiler is C++. Am I mixing up C and C++ strcat wrong way ? I suppose I can extract valid characters from the mess. Thanks for helping me understand this. Cheers Vaclav