to store char* from function return value
- by samprat
Hi folks,
I am trying to implement a function which reads from Serial Port ( Linux) and retuns char*.
The function works fine but how would I store return value from function.
example of function is
char *ReadToSerialPort()
{
char *bufptr;
char buffer[256]; // Input buffer/ /
//char *bufptr; // Current char in buffer //
int …