# Europagate, 1995
#
# $Log: Makefile,v $
-# Revision 1.9 1995/03/27 08:24:57 adam
+# Revision 1.10 1995/03/27 12:52:18 adam
+# A little more verbose in marc dump.
+#
+# Revision 1.9 1995/03/27 08:24:57 adam
# New module gip: Gateway IPc module.
# New module gw-db: Gateway hash-db module (user information table).
#
#
SHELL=/bin/sh
INCLUDE=-I../include
-CFLAGS=-g -Wall -pedantic -ansi
+#CFLAGS=-g -Wall -pedantic -ansi
TPROG1=iso2709dump
TPROG2=gwdbtest
LIB=../lib/util.a
* Europagate, 1995
*
* $Log: gip.c,v $
- * Revision 1.1 1995/03/27 08:24:58 adam
+ * Revision 1.2 1995/03/27 12:52:18 adam
+ * A little more verbose in marc dump.
+ *
+ * Revision 1.1 1995/03/27 08:24:58 adam
* New module gip: Gateway IPc module.
* New module gw-db: Gateway hash-db module (user information table).
*
#include <fcntl.h>
#include <sys/file.h>
#include <sys/stat.h>
+#include <errno.h>
#include <gip.h>
* Europagate, 1994-1995.
*
* $Log: iso2709dump.c,v $
- * Revision 1.5 1995/02/22 21:32:36 adam
+ * Revision 1.6 1995/03/27 12:52:18 adam
+ * A little more verbose in marc dump.
+ *
+ * Revision 1.5 1995/02/22 21:32:36 adam
* Changed header.
*
* Revision 1.3 1995/02/10 17:05:18 adam
{
char *buf;
Iso2709Rec rec;
+ int no = 0;
while ((buf = iso2709_read (stdin)))
{
rec = iso2709_cvt (buf);
- iso2709_display (rec, stderr);
+ fprintf (stderr, "------- %d --------\n", ++no);
+ if (rec)
+ {
+ iso2709_display (rec, stderr);
+ iso2709_rm (rec);
+ }
+ else
+ {
+ fprintf (stderr, "Bad record\n");
+ break;
+ }
free (buf);
- iso2709_rm (rec);
}
return 0;
}