/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) 1995-2010 Index Data
* See the file LICENSE for details.
*/
inf = fopen ("dummy-records", "r");
if (!inf)
{ /* file not there. Get them from fixed array */
+ if (num < 1)
+ return 0;
+ return marc_records[(num-1) % 24];
if (num < 1 || num > 24)
return 0;
return marc_records[num-1];
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab