Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Cookies in boxes - algorithmic challenge Date: Mon, 06 Apr 2026 15:44:29 -0700 Organization: None to speak of Lines: 29 Message-ID: <87y0iz3e0i.fsf@example.invalid> 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 Injection-Date: Mon, 06 Apr 2026 22:44:31 +0000 (UTC) Injection-Info: dont-email.me; posting-host="c89d67d6d7dc44c8a8f559dd5aa96ee5"; logging-data="2572531"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ynoz7E9lniHOQxzDd/9np" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:mYcc/8iP/+LEB9RUec//uM+Ymts= sha1:o1hH5sKnWbYlWiHnP7XK8D+NqO0= Xref: csiph.com comp.lang.c:397396 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? Yes. The C standard doesn't define anything called "modules". A translation unit consists of a source file and all the headers and source files it #includes. There's nothing necessarily wrong with referring to "modules" as a way to talk about program organization, but it's helpful to define what you mean by the term. > Do we say "declared" for functions in C? I thought it was called > "prototyped." Functions can be declared and/or defined. A definition provides a declaration. A prototype is a declaration that specifies the types of any parameters; the alternative is an old-style declaration. Old-style function declarations and definitions are no longer supported in C23. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */