25 #include <yaz/snprintf.h>
31 const char *srcdir = getenv(
"srcdir");
32 if (!srcdir || ! *srcdir)
48 yaz_snprintf(path,
sizeof(path),
"%s/no_such_file.txt",
get_srcdir());
51 yaz_snprintf(path,
sizeof(path),
"%s/tstpass.txt",
get_srcdir());
65 int main (
int argc,
char **argv)
67 YAZ_CHECK_INIT(argc, argv);
void passwd_db_close(Passwd_db db)
Passwd_db passwd_db_open(void)
int passwd_db_auth(Passwd_db db, const char *user, const char *pass)
int passwd_db_file_plain(Passwd_db db, const char *fname)
int passwd_db_file_crypt(Passwd_db db, const char *fname)
int main(int argc, char **argv)
const char * get_srcdir(void)