Re:Git's list of banned C functions
by ByteJockey on Thursday March 04, 2021 @09:18PM
(#26351674)
You sometimes see sentinel values used with varargs (only if they're all the same type), which is basically just an array with more boilerplate.
That being said. Length as a first parameter and the rest of the arguments being the variadic bit is also quite normal.
The problem is the null termination, which is not general to arrays (though it is sometimes used with arrays of pointers).