I have the following declaration:

char (*lines)[5];

I need to allocate 10 strings, and each string is 5 characters long. I used the following but did not seem to work.

lines = malloc(10 * sizeof(*lines));

I don't know if the issue is with the declaration or the allocation.

Thanks in advance.