delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/06/13:45:36

From: sparhawk AT eunet DOT at (Gerhard Gruber)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Another silly question!
Date: Tue, 06 Oct 1998 18:42:16 GMT
Organization: Customer of EUnet Austria
Lines: 32
Message-ID: <36245f19.3127517@news.Austria.EU.net>
References: <19981006122045 DOT 25193 DOT 00007641 AT ng117 DOT aol DOT com>
NNTP-Posting-Host: e076.dynamic.vienna.at.eu.net
Mime-Version: 1.0
X-Trace: fleetstreet.Austria.EU.net 907695773 19719 193.154.184.76 (6 Oct 1998 17:42:53 GMT)
X-Complaints-To: abuse AT Austria DOT EU DOT net
NNTP-Posting-Date: 6 Oct 1998 17:42:53 GMT
X-Newsreader: Forte Agent 1.5/32.451
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id NAB15802
Reply-To: djgpp AT delorie DOT com

Destination: uhfgood AT aol DOT com (Uhfgood)
From: Gruber Gerhard
Group: comp.os.msdos.djgpp
Date: 6 Oct 1998 16:20:45 GMT:

>Hey...  consider the following function :
>
>jerk( )
>{ 
>    printf("Bill is a jerk.\n");
>}
>
>How come I don't get any prototyping warnings or errors when
>I compile this?  It compiles fine... no warnings or nothin'

As long as you don't reference this function you wont get any warnings
concerning prototypes. Also it depends on the position of the function. If you
first declare the function and the call it you also don't need a prototype.
Though I'd recommend to write one anyway if it is a function that is general
usable.
--
Bye,
   Gerhard

email: sparhawk AT eunet DOT at
       g DOT gruber AT sis DOT co DOT at

Spelling corrections are appreciated.
ICQ#: 18578771

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019