Objective-c – What does the extern keyword mean

cexternobjective c

What does the extern keyword mean? I've seen that in front of an function declaration like

extern void DoFoo ...

Best Answer

extern gives a name external linkage. This means that the object or function is accessible through this name from other translation units in the program. For functions, this is the default linkage in any case so its usage (in this context) is usually redundant.