external linkage

Nix nix@esperi.org.uk
Wed Oct 10 19:09:00 GMT 2012


On 10 Oct 2012, Андрей Викторович uttered the following:

> Hi, i want understand why in glibc functions of the standard C library
> declares with 'extern' memory specifier. Please, tell me about this,
> because c89, c99, c11 drafts indicate external-linkage as default, but
> glibc use decidedly declare 'extern' with function prototypes in
> headers (like 'extern type_t foo()'). I use GNU/linux. Thank's.

This is essentially stylistic, making it doubly obvious that 'this is
really extern'. It's a Unix tradition, more or less.

-- 
NULL && (void)



More information about the Libc-help mailing list