list-lang-prototype/List.c
List* List_new_empty(size_t n)
{
    List* newlist = malloc(sizeof(List) + n);
    newlist->size = n;
    memset(newlist->data, 0, n);
    return newlist;
}
// Creates and returns an empty list of size n.
Creates and returns an empty list of size n.
Creates and returns an empty list of size n .
List* List_new_empty(size_t n)
{
    List* newlist = malloc(sizeof(List) + n);
    newlist->size = n;
    memset(newlist->data, 0, n);
    return newlist;
}
List * List_new_empty ( size_t n ) { List * newlist = malloc ( sizeof ( List ) + n ) ; newlist -> size = n ; memset ( newlist -> data , 0 , n ) ; return newlist ; }
Creates and returns an empty list of size n.
Creates and returns an empty list of size n .