have a read of how-to-get-the-best-out-of-this-forum
in particular you don't appear to have included the code definitions for
void read_incoming();
void write_outgoing();
problem sounds like an array overrun, memory corruption etc
have a read of how-to-get-the-best-out-of-this-forum
in particular you don't appear to have included the code definitions for
void read_incoming();
void write_outgoing();
problem sounds like an array overrun, memory corruption etc