I want to be able to wrap text if there is a resizing of the window, I know this can be done as there have been other questions similar to mine in SO. (I guess this [one](https://stackoverflow.com/questions/18377376/how-to-get-textcolumns-to-auto-wrap-in-zurb-foundation-v3-2-5) would qualify )

I am using Foundation 4 (latest version) and the provided solution does not work; for example take a look at the following screenshot [here](https://imgur.com/KJSWntW) which shows the result, computed CSS rules and actual page markup. It also shows that the strings of consecutive a's are not wrapped as they should. Any ideas on how to go about an correcting this?
['https://Stackoverflow.com/questions/19112318', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1414710/']
Use dynamic memory allocation.

```
Items **type;
type = malloc(sizeof (Items *) * typenum);

for (int i = 0; i < typenum; i++)
    type[i] = malloc(sizeof Items) * typetotal);

```

You need to manually free the allocated memory after using the array.

```
for (int i = 0; i < typenum; i++)
    free(types[i]);

free(types);

```

Here is a tutorial on it: <http://www.eskimo.com/~scs/cclass/int/sx9b.html>
If `typenum` and `typetotal` increase as your program runs be sure to use `realloc`, which will reallocate more memory and keep the contents. You'll need to allocate the first dimension of the array like this:

```
myArray = realloc(myArray, sizeof(Items*) * typenum);

```

and then allocate the second dimension for each of the first:

```
for(...)
    myArray[i] = realloc(myArray[i], sizeof(Items) * typetotal);

```