Assigning value to allocated char array fails
<p>I simply allocate some memory for a character and wanna do then some pointer arithmetic.
In this case I wanna write '\x0a' to byte 32 as follows:</p>

<pre><code>#define HDR_SIZE 32   

int size = 52;

unsigned char *readXPacket = (unsigned char *) malloc (size * sizeof (unsigned char));
*readXPacket + HDR_SIZE = '\x0a';
</code></pre>

<p>When I try doing that I get the following error message: non-value in assignment. Anyone an idea what is wrong here?</p>

<p>Thanks</p>
