没见过 :(
搜了一下
A declaration of a parameter as ''array of type'' shall be adjusted to
''qualified pointer to type'', where the type qualifiers (if any) are those
specified within the [ and ] of the array type derivation. If the keyword
static also appears within the [ and ] of the array type derivation, then for
each call to the function, the value of the corresponding actual argument
shall provide access to the first element of an array with at least as many
elements as specified by the size expression.
然后stackoverflow有详细解释
https://stackoverflow.com/questions/18362315/static-size-of-array-in-c99
【 在 gameplayer 的大作中提到: 】
: static inline void encode_base64(char dest[static 4], const uint8_t src[stat
: ic 3]) {...}
: 这个函数参数中的 static 4 感觉好奇怪,印象中没有见过这么用的,这里的static啥
: ...................
--
修改:haha103 FROM 182.150.115.*
FROM 182.150.115.*