Hello, I know this is probably a very elementary answer, but how does one convert a character into a character pointer, for use strcpy()? For instance, I need this:
char sendBuffer[5];
char ch;
// assume code in between makes ch something
strcpy(sendBuffer, (char*) ch);
However, the console window that runs this closes as soon as it gets to this. ch is just a regular character, though.
Sorry that I either do not know or just forgot this, I have tried a lot of things to make it work but have not had any succeed yet.