Date: Wed, 25 Aug 1999 21:24:09 -0700 From: Eric Hodel <hodeleri@seattleu.edu> To: Naiden Markachev <nmm367@duke.usask.ca> Cc: freebsd-newbies@freebsd.org Subject: Re: Old style C function declaration Q Message-ID: <37C4C169.E9F9ED4F@seattleu.edu> References: <Pine.OSF.4.10.9908250836220.10995-100000@duke.usask.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37C4C169.E9F9ED4F>