7 /* convert stream-lf data to record format
11 /* stream2rec reads lines from standard input and writes
12 /* them to standard output in record form.
14 /* Problems are reported to the standard error stream.
18 /* The Secure Mailer license must be distributed with this software.
21 /* IBM T.J. Watson Research
23 /* Yorktown Heights, NY 10598, USA
30 /* Utility library. */
38 #include <rec_streamlf.h>
42 VSTRING
*buf
= vstring_alloc(150);
45 while ((type
= rec_streamlf_get(VSTREAM_IN
, buf
, 150)) > 0)
46 REC_PUT_BUF(VSTREAM_OUT
, type
, buf
);
47 vstream_fflush(VSTREAM_OUT
);