This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: external linkage
- From: Nix <nix at esperi dot org dot uk>
- To: libc-help at sourceware dot org
- Date: Wed, 10 Oct 2012 20:09:44 +0100
- Subject: Re: external linkage
- References: <507591C1.70403@yahoo.com>
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)