title: How to memcpy into a two dimensional array in Structured Text?
body: <p>Basically I have this Problem like in C decribed <a href="https://stackoverflow.com/questions/16896209/how-to-memcpy-the-two-dimensional-array-in-c">here</a> for Structured Text.</p>
  
  <p>So in C I can do this to copy vector c into matrix rows a :</p>
  
  <pre><code>int a[100][100];
  int c[10][10];
  
  int i;
  for(i = 0; i&lt;10; i++)
  {
      memcpy(&amp;a[i], &amp;c[i], sizeof(c[0]));
  }
  </code></pre>
  
  <p>How to do this in Structured Text? My analogous Approach does not work so far. (Compiler Error: to less indices for field a).</p>
  
  <pre><code>VAR 
        a: ARRAY[0..99,0..99] OF REAL; (*2D array*)
        c : ARRAY[0..99] OF REAL; (*1D array*)
  END_VAR
  
  FOR i:=0 TO 99 DO
        memcpy(ADR(a[i]), ADR(c[i]), SIZEOF(c[0]));
  END_FOR
  </code></pre>