[En-Nut-Discussion] TCP Stream question

Harald Kipp harald.kipp at egnite.de
Sun Oct 26 18:06:54 CET 2003


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.





More information about the En-Nut-Discussion mailing list