Redian新闻
>
can't understand this function definition
avatar
can't understand this function definition# Programming - 葵花宝典
b*e
1
the gdbm package,
look into
extern GDBM_FILE gdbm_open __P((char *, int, int, int, void (*)()));
extern void gdbm_close __P((GDBM_FILE));
extern int gdbm_store __P((GDBM_FILE, datum, datum, int));
extern datum gdbm_fetch __P((GDBM_FILE, datum));
extern int gdbm_delete __P((GDBM_FILE, datum));
extern datum gdbm_firstkey __P((GDBM_FILE));
extern datum gdbm_nextkey __P((GDBM_FILE, datum));
extern int gdbm_reorganize __P((GDBM_FILE));
extern void gdbm_sync __P((GDBM_FILE));
extern int gdbm_
avatar
b*e
2
hmm, clean after myself :)
__P is macro, it is a way they use to support C++ function call
Thanks,

【在 b*********e 的大作中提到】
: the gdbm package,
: look into
: extern GDBM_FILE gdbm_open __P((char *, int, int, int, void (*)()));
: extern void gdbm_close __P((GDBM_FILE));
: extern int gdbm_store __P((GDBM_FILE, datum, datum, int));
: extern datum gdbm_fetch __P((GDBM_FILE, datum));
: extern int gdbm_delete __P((GDBM_FILE, datum));
: extern datum gdbm_firstkey __P((GDBM_FILE));
: extern datum gdbm_nextkey __P((GDBM_FILE, datum));
: extern int gdbm_reorganize __P((GDBM_FILE));

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。