-/* $Id: tstbfile1.c,v 1.6 2007-11-14 09:44:16 adam Exp $
- Copyright (C) 1995-2007
- Index Data ApS
-
-This file is part of the Zebra server.
+/* This file is part of the Zebra server.
+ Copyright (C) 1994-2011 Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdlib.h>
#include <string.h>
#include <idzebra/bfile.h>
const char *more_info = 0;
bf_reset(bfs);
- bf = bf_xopen(bfs, "tst", /* block size */ 32,
+ bf = bf_xopen(bfs, "tst", /* block size */ 32,
/* wr */ 1, "tstmagic", &version, 0 /* more_info */);
YAZ_CHECK(bf);
if (!bf)
return;
bf_xclose(bf, version, "more info");
-
- bf = bf_xopen(bfs, "tst", /* block size */ 32,
+
+ bf = bf_xopen(bfs, "tst", /* block size */ 32,
/* wr */ 1, "tstmagic", &version, &more_info);
-
+
YAZ_CHECK(bf);
if (!bf)
return;
BFile bf;
bf_reset(bfs);
- bf = bf_xopen(bfs, "tst", /* block size */ 32,
+ bf = bf_xopen(bfs, "tst", /* block size */ 32,
/* wr */ 1, "tstmagic", &version, 0 /* more_info */);
YAZ_CHECK(bf);
if (!bf)
for(i = 0; i<BLOCKS; i++)
blocks[i] = 0;
- bf = bf_xopen(bfs, "tst", /* block size */ 32,
+ bf = bf_xopen(bfs, "tst", /* block size */ 32,
/* wr */ 1, "tstmagic", &version, 0 /* more_info */);
YAZ_CHECK(bf);
if (!bf)
else
{
bf_xclose(bf, version, 0);
- bf = bf_xopen(bfs, "tst", /* block size */ 32,
+ bf = bf_xopen(bfs, "tst", /* block size */ 32,
/* wr */ 1, "tstmagic", &version, 0 /* more_info */);
}
}
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab