OK, I've been banging my head against a wall for a few hours. And I need some sleep. Can someone please show my how to accept input and keep count of it so I can send WriteBytes2() the address of the buffer and the number of bytes entered?
Here is a snipet of what I have...
quit = false;
while (buffer!=CR)
{
cin>>buffer;count++;
WriteBytes2(&buffer, count); //write to other terminal
if (buffer=='?')
{ //check for quit command
quit=true;
return 0;
}
}
but the count isn't right. My output is garbage. The sad thing is about 4 hours ago I had this thing working but I don't know what I changed that messed the count up (besides deleting it in the first place).
Background: I am writing a program that will accept user input and send it over the serial port.
Thank you :eek: