Date: Wed, 25 Aug 1999 08:38:12 -0600 (CST) From: Naiden Markachev <nmm367@duke.usask.ca> To: freebsd-newbies@freebsd.org Subject: Old style C function declaration Q Message-ID: <Pine.OSF.4.10.9908250836220.10995-100000@duke.usask.ca>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.4.10.9908250836220.10995-100000>
