Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ncar!gatech!udel!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: ANSI prototype confusion Message-ID: <14681@smoke.brl.mil> Date: 7 Dec 90 19:34:27 GMT References: <4559@idunno.Princeton.EDU> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 8 In article <4559@idunno.Princeton.EDU> byron@astro.Princeton.EDU (Byron Rakitzis) writes: > void qsort(void *, int, int, int (*)(void *, void *)); >This is okay, except that gcc then complains if strcmp or any >function not taking (void *, void *) as arguments is passed to qsort. It SHOULD complain, since internally qsort() is going to be passing void* arguments to the function, so it had better be defined with compatible argument types.