Re: help in the declaration in stdio.h
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Look at the BSD Lite/2 <sys/cdefs.h>. -- Terry hi,guy: thanks! alex 2009-5-19 _______________________________________________ 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... PS: You can't use the BSD Lite2 <stdio.h> with Mac OS X; things will seriously break. On May 18, 2009, at 10:12 PM, alex alex wrote: Thanks for you answer and now whether the definition __P is a macro definition or not? If yes, where it is declarated and what's the declaration?
Date: Mon, 18 May 2009 21:10:12 -0700
Subject: Re: help in the declaration in stdio.h
From: 0xcafefeed@gmail.com
To: wujihui@live.com
CC: darwin-kernel@lists.apple.com
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!
What can you do with the new Windows Live? Find out
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/tlambert%40apple.com This email sent to tlambert@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert