Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Optimizing the code: way to reduce if, else if-s within the loop? Date: Sun, 22 Jan 2017 12:22:16 -0800 Organization: None to speak of Lines: 18 Message-ID: References: <35c56d5c-ff4a-46b5-9166-e88353bf62ce@googlegroups.com> <9av98ct6js5521njh31edq5kvnm6eqok53@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="888facdcfaaf0dacdc56e3b90fcf0c54"; logging-data="3766"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BaumKHROnWePslVdtg5Fw" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:a/M75DEtZl042tbC/QtGdfUUP1Q= sha1:8gWPvIUq1FnAJkzwxUQK/51rp5s= Xref: csiph.com comp.lang.c:102355 Barry Schwarz writes: >>If you're trying to implement it (i.e., write your own version), then >>(a) it's not necessary, since all conforming C implementations provide >>it in , and (b) there is no completely portable way to >>implement it (which is part of why it's defined in the standard >>library). > > Of course you meant standard header, not library. Yes, "standard header" would have been more precise. (On the other hand, it's specified in the "Library" section of the standard, which is what I meant to refer to.) -- 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"