Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Is 'extern' necessary? Date: Mon, 13 Feb 2017 09:52:09 -0800 Organization: None to speak of Lines: 23 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="1053b12f8bdcbe4d28b5788088a4d098"; logging-data="29187"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+H3WzO41GRG0Pr5LJVvKVm" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:Pfw8L6yO76XG6gWwnS55hNOA5GE= sha1:5ABaTtlYnJ72HRyjYWp2kieRcsQ= Xref: csiph.com comp.lang.c:103821 BartC writes: [...] > At least, gcc's stdio.h seems to use them directly: gcc has no stdio.h > extern > __attribute__((__format__ (gnu_printf, 3, 0))) __MINGW_ATTRIB_NONNULL(3) > int __cdecl __mingw_vsnprintf(char * __restrict__ _DstBuf,size_t > _MaxCount,const char * __restrict__ _Format, > va_list _ArgList); That appears to be provided by MinGW, not gcc. I have a gcc-based implementation on my system, and it doesn't include that declaration. > Lovely code. I assume this is only declaring one function, it's hard to > tell! But it's still code abuse IMO. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"