Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: Cookies in boxes - algorithmic challenge Date: Mon, 06 Apr 2026 15:42:06 -0700 Organization: A noiseless patient Spider Lines: 27 Message-ID: <86zf3fyam9.fsf@linuxsc.com> References: <20260401163447.000052de@yahoo.com> <10qk2e3$j5ho$3@dont-email.me> <20260402221052.000015d9@yahoo.com> <10r190u$2d47m$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Mon, 06 Apr 2026 22:42:07 +0000 (UTC) Injection-Info: dont-email.me; posting-host="d9fa7580ab63f06b181c1510d363a99a"; logging-data="2562111"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+QeCoqkw6MIskJKUXBtJ6/mmrTfuFo/nw=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:+CBOqXwInnApDoGoFoyWFXBRRwg= sha1:+m/MyMNvf5VnGEHPwrHLkMzesY8= Xref: csiph.com comp.lang.c:397395 Tristan Wibberley writes: > On 02/04/2026 20:10, Michael S wrote: > >> I'l look at your solution not before it is implemented according to >> my spec: as a module solver.c that implements function solver() as >> declared in solver.h and linkable with tb.c. > > Isn't it called a translation unit, rather than a module? Right. > Do we say "declared" for functions in C? I thought it was called > "prototyped." In C, a function can be declared (or even defined) without having a prototype. I think that might change (IMO a change for the worse) in C23, but before C23 a function declaration doesn't have to include a prototype. Personally I am not inclined to use "prototyped" as a verb in that way. The C standard talks about "a type that includes a prototype" or "a type that does not include a prototype", and normally I think I would use that phrasing, or a similar one. Note that prototypes can appear without necessarily being associated with any function, as for example in a typedef or a cast.