Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: question about linker Date: Fri, 29 Nov 2024 17:02:47 -0800 Organization: None to speak of Lines: 17 Message-ID: <87y111r0so.fsf@nosuchdomain.example.com> References: <877c8nt255.fsf@nosuchdomain.example.com> <20241129142810.00007920@yahoo.com> <20241129161517.000010b8@yahoo.com> <87mshhsrr0.fsf@nosuchdomain.example.com> <8734j9sj0f.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sat, 30 Nov 2024 02:02:48 +0100 (CET) Injection-Info: dont-email.me; posting-host="d28f02e76a6c2d00a69abdf93e7df1d2"; logging-data="1354134"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+yCGV1QqcbAjdCwPrS21/i" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:sxlCHQw+ebBpuAfUQpit0WVYBU8= sha1:ao897L2Ehn/s7B1TsQ2SneeLaP0= Bytes: 2071 antispam@fricas.org (Waldek Hebisch) writes: > Keith Thompson wrote: [...] >> Function declarations outside header files are valid, but tend to be >> rare in well-written C code. > > Hmm, in well-written code static functions are likely to be a > majority. Some people prefer to declare all functions and > put declarations of static functions in the same file as the > functions itself. Conseqently, function declarations are not > rare in such code. Do you consider it well-written? Sure, I missed that case. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */