+int marc_display_exl (const char *buf, FILE *outf, int debug, int length)
+{
+ int record_length;
+
+ WRBUF wrbuf = wrbuf_alloc ();
+ record_length = marc_display_wrbuf (buf, wrbuf, debug, length);
+ if (!outf)
+ outf = stdout;
+ if (record_length > 0)
+ fwrite (wrbuf_buf(wrbuf), 1, wrbuf_len(wrbuf), outf);
+ wrbuf_free (wrbuf, 1);
+ return record_length;
+}
+
+
+int marc_display_ex (const char *buf, FILE *outf, int debug)
+{
+ return marc_display_exl (buf, outf, debug, -1);
+}
+
+int marc_display (const char *buf, FILE *outf)
+{
+ return marc_display_ex (buf, outf, 0);
+}
+
+