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: Unexpected and difficult to understand SIGSEGV Date: Fri, 02 Oct 2015 10:20:18 -0700 Organization: None to speak of Lines: 17 Message-ID: References: <5608591F.8020005@verizon.net> <560e5a5c.4956718@news.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="29765"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/56je+EKB3iif99jVCnTwU" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:5n1Zb4Mz/PuyJPRHHB/MKZLhwmk= sha1:soRhDqfszlnAonxAeEOoMne7yRY= Xref: csiph.com comp.lang.c:71627 raltbos@xs4all.nl (Richard Bos) writes: [...] > I never manually write a prototype. I write a full function declaration > as part of the definition, and then copy-and-paste it into either the > list at the top of the file, or the header file. That way, at least I > know I've misspelt it the same way both times. A terminology quibble: A full function definition *includes* a declaration of that function (normally that declaration will be a prototype). A "prototype" is defined as a function declaration that specifies the types of the parameters. -- 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"