From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Robert P. J. Day" Subject: does static function declaration require static definition? Date: Tue, 2 Aug 2005 15:23:16 -0400 (EDT) Message-ID: Mime-Version: 1.0 Return-path: Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit To: C programming list from my 5th edition of harbison and steele, p. 83, i read that the "static" storage class specifier on a function "indicates that the declared function will be defined -- with storage class static -- later in the file." doesn't this read that, once you declare the function as static, you *must* define it as static as well? gcc doesn't seem to have a problem with leaving "static" off of the definition. of course, gcc certainly complains if you forget the "static" on the declaration but put it on the definition further down. rday