This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: external linkage


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]