Date: Mon, 4 Apr 2005 20:47:27 +0200 From: "Devon H. O'Dell " <dodell@offmyserver.com> To: freebsd-hackers@freebsd.org Subject: Re: C programming question Message-ID: <20050404184727.GF43436@smp500.sitetronics.com> In-Reply-To: <42518AC9.5070208@comcast.net> References: <42518AC9.5070208@comcast.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--Zs/RYxT/hKAHzkfQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 04, 2005 at 11:43:21AM -0700, Matt wrote: > I need some help understanding some C code.=20 >=20 > int (*if_ioctl) > (struct ifnet *, int, caddr_t); >=20 > int (*if_watchdog) > (int); >=20 > Can someone break down these declarations (if that's what they are)? Is= =20 > this a form of typecasting? Thanks for your help. These are pointers to functions accepting arguments of type: struct ifnet *, int, caddr_t and int both returning type integer. In the structure in which they are defined, they can be called with=20 structure.if_ioctl(ifnet, int, caddr_t) Kind regards, Devon H. O'Dell --Zs/RYxT/hKAHzkfQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCUYu/Skf3jVXOdl0RAn/zAJ9kmnpbj1B9IdJnDIeory9cjYf1HQCeKlA/ KWHd53K7oQHT7O4ij8AVpxg= =1RcZ -----END PGP SIGNATURE----- --Zs/RYxT/hKAHzkfQ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050404184727.GF43436>