title: Is function return an array possible in Vivado HLS?
body: <p>A function like that：</p>
  
  <pre><code>int * getRandom( ) {
  
     static int  r[10];
     int i;
  
     /* set the seed */
     srand( (unsigned)time( NULL ) );
  
     for ( i = 0; i &lt; 10; ++i) {
        r[i] = rand();
        printf( "r[%d] = %d\n", i, r[i]);
     }
  
     return r;
  }
  </code></pre>
  
  <p>Is this one possible to be used in Vivado HLS? If possible, how can I initialize an array of unknown size because I cannot use <code>static</code> and <code>malloc</code> anymore?</p>