Minor changes.
[egate.git] / util / iso2709dump.c
1 /*
2    Iso2709 record management
3
4    Europagate, 1994-1995.
5
6    iso2709dump.c,v
7  * Revision 1.3  1995/02/10  17:05:18  adam
8  * New function iso2709_display to display MARC records in a
9  * line-by-line format. The iso2709_cvt function no longer
10  * prints the record to stderr.
11  *
12  * Revision 1.2  1995/02/10  16:50:33  adam
13  * Indicator field moved to 'struct iso2709_dir' from 'struct
14  * iso2709_field'.
15  * Function iso2709_rm implemented - to delete a MARC record.
16  *
17  * Revision 1.1.1.1  1995/02/09  17:27:11  adam
18  * Initial version of email gateway under CVS control.
19  *
20  */
21
22 #include <stdio.h>
23 #include <stdlib.h>
24
25 #include <iso2709.h>
26
27 int main (int argc, char **argv)
28 {
29     char *buf;
30     Iso2709Rec rec;
31
32     while ((buf = iso2709_read (stdin)))
33     {
34         rec = iso2709_cvt (buf);
35         iso2709_display (rec, stderr);
36         free (buf);
37         iso2709_rm (rec);
38     }
39     return 0;
40 }