[En-Nut-Discussion] TCP Stream question

Ken Campbell ken at fraserhouse.com
Sun Oct 26 18:50:40 CET 2003


Harald,

  static u_char buff[1024];

Most of the code I'm using is from inteq.c.

Ken


At 12:06 PM 10/26/2003, you wrote:
>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.
>
>
>_______________________________________________
>En-Nut-Discussion mailing list
>En-Nut-Discussion at egnite.de
>http://www.egnite.de/mailman/listinfo/en-nut-discussion





More information about the En-Nut-Discussion mailing list