Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1a 7/7/83; site rlgvax.UUCP Path: utzoo!linus!philabs!seismo!rlgvax!guy From: guy@rlgvax.UUCP (Guy Harris) Newsgroups: net.lang.c Subject: Re: Argument typechecking vs. PRINTF et al Message-ID: <1150@rlgvax.UUCP> Date: Mon, 12-Sep-83 00:52:09 EDT Article-I.D.: rlgvax.1150 Posted: Mon Sep 12 00:52:09 1983 Date-Received: Mon, 12-Sep-83 19:49:33 EDT References: <2542@umcp-cs.UUCP> Organization: CCI Office Systems Group, Reston, VA Lines: 14 I have heard that C will soon check for type-correctness of arguments to routines (and will perform casts, as necessary). The syntax will probably be something like int stat(int, struct stat *); The way that routines such as "printf" are handled is that if you don't declare what arguments a routine takes, it assumes that you're being "old- fashioned" and will allow any arguments and will do no type-checking or casting; this also makes the new language compatible with the old one. Simple fix. Guy Harris {seismo,mcnc,we13,brl-bmd,allegra}!rlgvax!guy