site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=wfZbR0EOC1agMyzubSd9DwWoZNKSHdjIV0CBJFbl+V0=; b=qBr9J3wDsNA4S7htQr/5j1QT/9fVpcx0NwZ9eATQrnXr+0CjZMtcZK/57qC1yaFM/D +ErgwFAGY6cIlNsJJZEU+vF7TU8A1jFyD0CKOtYpGZSLzOrXP5xV+PSvoNCHlmeAGpnZ lhJK+yYuKpCWkcYKyaXMla1BEkOU4o/2OPnH4= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ksw9VK3WxDWQgfmwQnAIsAKTcQ2bJ5MXGZCI3j0TLEQGap+7WrC/ZbSTJtk8x16grY 7KQ2FwvWI+Gwa6tB+veWow1rSDlfV/PFU5NcOkvpjXMC/noHVPbqpeCyrOA5yjFGodXa lq6iRpTEXxA6tpgQCZ2JMF9jqCfvKEexclmGI= This is a basic k&r function pointer declaration anyway not really the list to learn C (should be rewritten :-) ) look for websites C for dummies function pointer ecetera Cheers! On Monday, May 18, 2009, alex alex <wujihui@live.com> wrote:
hi:
I have confused by the following declaration such as :
/* operations */ void *_cookie; /* cookie passed to io functions */ int (*_close) __P((void *)); int (*_read) __P((void *, char *, int)); fpos_t (*_seek) __P((void *, fpos_t, int)); int (*_write) __P((void *, const char *, int));
which are in stdio.h of bsd lite2 source code.
I do not understand this kind of declaration.I will be very approciate if anybody can answer me.
Thanks!
alex
2009-5-19
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it!
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com