From owner-freebsd-newbies Wed Aug 25 7:38:23 1999 Delivered-To: freebsd-newbies@freebsd.org Received: from duke.usask.ca (duke.usask.ca [128.233.3.13]) by hub.freebsd.org (Postfix) with ESMTP id 8C876152C4 for ; Wed, 25 Aug 1999 07:38:15 -0700 (PDT) (envelope-from nmm367@duke.usask.ca) Received: from localhost (nmm367@localhost) by duke.usask.ca (8.8.7/8.8.7) with ESMTP id IAA13807 for ; Wed, 25 Aug 1999 08:38:13 -0600 (CST) Date: Wed, 25 Aug 1999 08:38:12 -0600 (CST) From: Naiden Markachev To: freebsd-newbies@freebsd.org Subject: Old style C function declaration Q Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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)); KINFO *ki; char *comm; int maxlen; { [.. part of the ps command source ..] I am able to grasp the general idea but that doesn't satisfy me ;> Thanks for your time, Naiden To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message