On 12 February 2011 06:07, Markus Elfring <[email protected]> wrote:
>> -int main(int argc, char *argv[]) {
>> +static int main(int argc, char *argv[]) {
>>         return 0;
>>  }
>
> I find that your update suggestion shows a bad example because the function
> "main" should not be marked as "static", should it?
> http://en.wikipedia.org/wiki/Main_function#C_and_C.2B.2B

Yes, using main was not very well thought. It was just that I when testing
needed any function to test with and main fulfilled that any function
criteria. But you are right, not a good example.

BR Håkon Løvdal
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to