Commits

Sören Wegener  committed 8113707

Write file size into buffer.

  • Participants
  • Parent commits 54fb42f

Comments (0)

Files changed (1)

 int main(int argc, char* argv[]) {
     HANDLE hComm;
     DCB dcb;
-    char send_data[512], recv_data[20], choose, buffer[8];
+    char send_data[512], recv_data[132], choose, buffer[8];
     long size, n, i, pos;
     int x_paket[132], n_paket, z, l;
     FILE *fp;
             }
             else {
                 if(number > 0) {
-                    printf("Received %d bytes:\n %s\n", number, recv_data);
+                    printf("Received %d bytes:\n", number, recv_data);
+                    printf("--------\n");
+                    for(i=0; i<132; i++) {
+                        buffer[i] = recv_data[3+i];
+                    }
                 }
                 else {
                     printf("Timeout!\n");