 <p><code>char string[128];</code> defines a statically sized array of <code>char</code>s. There is no need to allocate memory for it, but, on the other hand, there is no way to resize the memory portion.</p> <p>To use a dynamically sized array use <code>char *string;</code> with <code>string = malloc(128)</code>, <code>string = realloc(string, newsize)</code> and <code>free(string)</code> when you are done.</p>