James Cameron wrote: > It's gets(), surely? If it is the ANSI C function, it is defined as > using getc() until it receives an end of line marker. Are you sending > characters followed by a carriage return? I have no knowledge of this flavor of C, but shouldn't he be sending a NULL (0x0 0) value to terminate an ASCII string? Could that be the problem? Michael ************************************************************************* When the way of the Tao is forgotten, kindness and ethics must be taught. Men must learn to pretend to be wise and good. -- Lao Tzu *************************************************************************