🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1645

May prototypes be required for lib functs

#1645
From: Jon Ryshpan
Date: Thu, 06 Sep 1990 18:56
23 lines
1170 bytes
May an ANSI C compiler maker require that users of a compiler and its
libraries put prototypes for the lib functs in functions which call
these lib functs?

For example it might be desirable for lib functs to pop their own
arguments (callee pops convention).  This is clearly not possible
unless the callee knows the number and types of its arguments.

On the other hand this requirement will break any code which doesn't
include the appropriate header files, eg. string.h for strcpy.  Most
K&R C code doesn't include these headers.

Is such a requirement is *permitted* under ANSI C, and is it a good
idea?

Many Thanks:	

Jonathan Ryshpan		<...!uunet!hitachi!jon>

M/S 420				(415) 244-7369  	
Hitachi America Ltd.
2000 Sierra Pt. Pkwy.
Brisbane CA 94005-1819
Technical Details
Message-ID: <478@hitachi.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!wuarchive!uunet!hitachi!jon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!wuarchive!uunet!hitachi!jon
From: jon@hitachi.uucp (Jon Ryshpan)
Newsgroups: comp.std.c
Subject: May prototypes be required for lib functs
Message-ID: <478@hitachi.uucp>
Date: 6 Sep 90 18:56:31 GMT
Distribution: na
Organization: Hitachi America - Semiconductor & IC
Lines: 23