Sujet : C function prototype was Python (was Re: I did not inhale)
De : james.harris.1 (at) *nospam* gmail.com (James Harris)
Groupes : comp.lang.miscDate : 18. Aug 2024, 18:36:07
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v9t7tn$2eiop$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User-Agent : Mozilla Thunderbird
On 18/08/2024 15:55, David Brown wrote:
...
What does "static" mean inside square brackets in a C function prototype?
I know there's a better newsgroup for it but, since you brought it up and it does also fit here, I should say that I had no idea that a C program could have square brackets in a function prototype and I cannot think of ever seeing such a thing.
I presume you do mean C and not some sort of compiler extension.
As for static, IIRC labelling as "static" any external name (i.e. one not in a function) would make it private to the CU and not visible outside but that is just a guess.
Or perhaps you meant a static formal parameter. Again, not something I've ever come across and would be curious as to what it meant.
Would you care to say more about what you had in mind?
-- James Harris