How to save continuous 512 bytes into file using fprintf : <p>I want to save continuous 512 memory location values into csv file</p>

<pre><code>        memcpy(signals, ascanSamples, ascanSizeInBytes);
        fprintf(fptr1, "%f,", *(signals));
</code></pre>

<p>Using fprintf how can i achieve it,.</p>

<p>I tried</p>

<pre><code>fprintf(fptr1, "%f,", 512,512, *(signals)) but it is not working
</code></pre>
