Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: The C Containers library Date: Thu, 05 Nov 2015 09:24:27 -0800 Organization: None to speak of Lines: 18 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="12531"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/MqD0XdLpf6askkrOfuWNY" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:MytuwF0LDPRyD9TUIujXibgMnq4= sha1:cqgW9tCNsHyguIPZy8V8uL/UABY= Xref: csiph.com comp.lang.c:74989 Johannes Bauer writes: > On 31.10.2015 21:46, Keith Thompson wrote: >>> Has probably UB (return missing). >> >> If you're referring to the lack of a return statement at the end of >> main(), that's not an issue. In C++ (as in C starting with C90), >> reaching the closing "}" of main() does an implicit `return 0;`. > > I was. Thanks for your pointer, learned something new. Interesting! And in case people have forgotten the correction I posted earlier, this rule was introduced to C in C99, not C90. -- 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"