>> + memcpy(
>> +( ptr, E, n *
>> +- sizeof(*(ptr))
>> ++ sizeof(T)
>> +| arr, E, n *
>> +- sizeof(*(arr))
>> ++ sizeof(T)
>> +| E, ptr, n *
>> +- sizeof(*(ptr))
>> ++ sizeof(T)
>> +| E, arr, n *
>> +- sizeof(*(arr))
>> ++
> It can determine the type of t->entries if it has access to the definition
> of the type of t.
I would like to point another implementation detail out.
Another known function was also an update candidate.
https://github.com/git/git/blob/9a1180fc304ad9831641e5788e9c8d3dfc10ccdd/pretty.c#L90