Re:A nice, little known C feature: Static array indices in p...
by apaprocki on Monday February 18, 2013 @03:01PM
(#5240277)
Using 'static' in this way compiles with both Oracle Studio 12 and IBM xlc 11, but neither exhibit the behavior that gcc is shown to have in the article. Passing in both NULL as well as an array of shorter length work just fine with no warning/error from the compiler.
So, YMMV.