우선 예를들어 GDBM의 open function의 proto type을 보면
extern GDBM_FILE gdbm_open GDBM_Proto((
char *file,
int block_size,
int flags,
int mode,
void (*fatal_func)()
));
이런데요 실제로 매뉴얼을 보면 fatal_func의 인자로 char*값이 하나 넘어간다고 되어 있습니다. 그래서 실제로
void err_func(char *str)
{
printf("<b>DB Error</b>: %s", str);
exit(1);
}
dbf = gdbm_open(filename, 512, flag, 0666, err_func);