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: Sun, 01 Nov 2015 01:22:57 -0800 Organization: None to speak of Lines: 21 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="17354"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kA8LPcNrnkFFkdBqLmonT" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:ey+g6/RL8wb43xntOjVPs89sWiQ= sha1:yIevhDZrtgTgvCdEqL1XGM2Mmp4= Xref: csiph.com comp.lang.c:74527 Robert Wessel writes: [...] >> >>> 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;`. > > > Was that a change in C90? In C89 falling off the end of main was > legal, but the value returned to the system was not defined. C99 > defined the return value in that case to be zero. Sorry, that was a typo. I meant C99. -- 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"