Ken, How's buff declared? Harald >for (;;) { > > fgets(buff, sizeof(buff), stream); > > if ((cp = strchr(buff, '\r')) != 0) *cp = 0; > if ((cp = strchr(buff, '\n')) != 0) *cp = 0; > if (buff[0] == 0) continue; > > puts(buff); >} > >But this doesn't print anything to the serial port.