Path: csiph.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: on confusing procedure names with the address of procedures Date: Fri, 29 Oct 2021 18:33:24 -0700 Organization: A noiseless patient Spider Lines: 30 Message-ID: <86fssje1p7.fsf@linuxsc.com> References: <86bl37e49v.fsf@levado.to> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="6172d9893ff5ddcd59d33e927dfcf2b5"; logging-data="13150"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xck4xKO8N+DbNy02HJRy/yvcUODC+3Zo=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:izKBo76saJZuuGqgKVNyo7Qf5WA= sha1:mxcP6vb+Q1oPCxOm0bR6+hDGlkU= Xref: csiph.com comp.lang.c:163263 Meredith Montgomery writes: > I wrote > > [..various confusions..] I recommend: One: get in the habit of running gcc in a conforming mode - gcc -x c -std=c99 -pedantic-errors .c Two: get a copy of the C standard (or a close approximation thereto) wget http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf (This link is for a corrected draft of C99. It isn't the latest version of C but for starters it is an excellent reference.) Three: read section 6.3.2.1 paragraphs 1, 3, and 4. Four: read section 6.5.3.2 Five: after reading the above and looking again at your code, if you are still confused ask another question here. Six: in general, if there is ever a question or confusion you have about C, first try to find the answer yourself in the document whose link is given above. If you feel you still need help then ask in the newsgroup here.