Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!ucbvax!hplabs!otter!hplb!cdollin!kers From: kers@hpld.hpl.hp.com (Kers) Newsgroups: comp.lang.c Subject: Re: Function-types: compatability, and typedefs Message-ID: Date: 31 Aug 89 20:40:48 GMT Sender: news@hplb.hpl.hp.com Distribution: comp Organization: Hewlett-Packard Laboratories, Bristol, UK. Lines: 17 In-reply-to: kers@hpld.hpl.hp.com's message of 31 Aug 89 20:33:40 GMT Urhm. After my previous posting (let's hope they go out together) I found some discussion in comp.std.c on the function pointer issue. I can't imagine how I'd missed it before; I apologise. The typedef question stands, as does my remaining question: if I cast (say) (int (*)( void *, void *)) strcmp, and pass it to (say) qsort (as the compar parameter), can I expect it to work, and does such usage conform to the pANS? (I suspect the answers to be Yes (on many implementations) and No, respectively). -- Regards, Kers. "If anything anyone lacks, they'll find it all ready in stacks."