Hello, Victor!
13 Jan 98, Victor Kemp wrote to All:
:VK> char charvar;
:VK> char stringvar[90];
:VK> strcat(stringvar, charvar);
Both parameters of strcat-function should be c-strings(with '\0' at the end).
These '\0' are using for indication of start and finish concatination. So you
can not use strcat. Try
strncat(stringvar, &charvar, 1);
Probably it will work.
:VK> strcat(stringvar, (char *)charvar);
What is (char *)charvar? Char (contents) is converting into pointer to char.
What will address this pointer?
Alexey
--- GoldED 3.00.Alpha4+
---------------
* Origin: St_1, St.Petersburg Russia (2:5030/155.19)
|