int allocate_lines(struct line** lines, int Number)
{
lines* = (line*)malloc(Number*sizeof(struct line));
if (!lines)
{
return CANT_ALLOCATE_LINES;
}
return OK;
}
...
struct line * lines;
error = allocate_lines(&lines, View.Model.Edge.Number);