Hi,
I have the following program:
Code:for (;;) { char linea[16384] = ""; char byte; int i = 0; while ((fread(&byte,1,1,stdin))) { linea[i]=byte; i++; linea[i]='\0'; if (byte=='\n') break; } ...... }
My partner send me lines from time to time. When the line sended is less than 256 bytes I received OK, but when the length is > 256 I only received first 256 and loss the rest.
How can I receive bytes > 256????? is there any buffer limit????
P.S.: I'm using MINGW under Windows