title: Issue with fwrite and fread in sequence
body: <p>I'm trying to write simple struct with an array to a file and then read it. It works with the array of a small size &lt; 25 but for some reason all data after that is not initialized;</p>
  
  <pre><code>typedef struct TestStruct {
      int data[30];
  } TestStruct;
  
  
  
  TestStruct *test = malloc(sizeof(TestStruct));
  for (int i = 0; i &lt; 30; i++)
  {
      test-&gt;data[i] = i;
  }
  const char *filename = "some.txt";
  FILE *file = fopen(filename, "w+");
  fwrite(test, sizeof(TestStruct), 1, file);
  rewind(file);
  TestStruct *test2 = malloc(sizeof(TestStruct));
  int rc = fread(test2, sizeof(TestStruct), 1, file);
  </code></pre>
  
  <p>The result of this code is <code>rc = 0</code> and integers after index 25 are not initialized for some reason. Can anybody explain where is the problem?</p>