/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
-
/** \file
* \brief Little toy-thing to read GRS-1 records from a file.
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdio.h>
-#include <ctype.h>
#include <stdlib.h>
#include <yaz/proto.h>
while (fgets(buf = line, 512, f))
{
- while (*buf && isspace(*(unsigned char *) buf))
+ while (*buf && yaz_isspace(*buf))
buf++;
if (!*buf || *buf == '#')
continue;
if (!(buf = strchr(buf, ')')))
return 0;
buf++;
- while (*buf && isspace(*(unsigned char *) buf))
+ while (*buf && yaz_isspace(*buf))
buf++;
if (!*buf)
return 0;