necessity for "extern" in function prototype?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi:

I note that the headers of the linux source have "extern" in the function protoptye.
I think the extern is not necessary because all function in C are global (except static functions),
on the other hand, adding "extern" in prototype makes the code easy to read.

Is there any stronger reason for adding "extern" in function prototype?

regards,
Min-Hua

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux