From owner-freebsd-newbies Wed Aug 25 21:23:46 1999 Delivered-To: freebsd-newbies@freebsd.org Received: from exegrnnts001.seattleu.edu (exegrnnts001.seattleu.edu [206.81.198.91]) by hub.freebsd.org (Postfix) with ESMTP id 161A4153A5 for ; Wed, 25 Aug 1999 21:23:42 -0700 (PDT) (envelope-from hodeleri@seattleu.edu) Received: from seattleu.edu (ppp4.pm2b.wport.com [206.129.99.84]) by exegrnnts001.seattleu.edu with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id RKP9DQS7; Wed, 25 Aug 1999 21:23:14 -0700 Message-ID: <37C4C169.E9F9ED4F@seattleu.edu> Date: Wed, 25 Aug 1999 21:24:09 -0700 From: Eric Hodel Organization: Dis X-Mailer: Mozilla 4.51 [en] (X11; I; FreeBSD 3.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Naiden Markachev Cc: freebsd-newbies@freebsd.org Subject: Re: Old style C function declaration Q References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Naiden Markachev wrote: > > Hi Everyone, > > I was reading some FreeBSD source code and I found some difficulties with > the function declaration style. Could someone explain me what > > char **(*fn) __P((kvm_t *, const struct kinfo_proc *, int)); > > line in this function declaration exactly means: > > static char * > fmt(fn, ki, comm, maxlen) > char **(*fn) __P((kvm_t *, const struct kinfo_proc *, int)); If my rudimentary C knowledge is correct, this declaration is calling the macro __P() -- Eric Hodel - hodeleri@seattleu.edu - Aspiring programmer & FPS minor demi-god. Customers will come to our 'home page' in unbelievable numbers and find out everything we want them to know. --Bill Gates To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message