/*++ /* NAME /* rec_streamlf 3 /* SUMMARY /* record interface to stream-lf files /* SYNOPSIS /* #include <rec_streamlf.h> /* /* int rec_streamlf_get(stream, buf, maxlen) /* VSTREAM *stream; /* VSTRING *buf; /* int maxlen; /* /* int rec_streamlf_put(stream, type, data, len) /* VSTREAM *stream; /* int type; /* const char *data; /* int len; /* AUXILIARY FUNCTIONS /* int REC_STREAMLF_PUT_BUF(stream, type, buf) /* VSTREAM *stream; /* int type; /* VSTRING *buf; /* DESCRIPTION /* This module implements record I/O on top of stream-lf files. /* /* rec_streamlf_get() reads one record from the specified stream. /* The result is null-terminated and may contain embedded null /* characters. /* The \fImaxlen\fR argument specifies an upper bound to the amount /* of data read. The result is REC_TYPE_NORM when the record was /* terminated by newline, REC_TYPE_CONT when no terminating newline /* was found (the record was larger than \fImaxlen\fR characters or /* EOF was reached), and REC_TYPE_EOF when no data could be read or /* when an I/O error was detected. /* /* rec_streamlf_put() writes one record to the named stream. /* When the record type is REC_TYPE_NORM, a newline character is /* appended to the output. The result is the record type, or /* REC_TYPE_EOF in case of problems. /* /* REC_STREAMLF_PUT_BUF() is a wrapper for rec_streamlf_put() that /* makes it more convenient to output VSTRING buffers. /* REC_STREAMLF_PUT_BUF() is an unsafe macro that evaluates some /* arguments more than once. /* SEE ALSO /* record(3) typed records /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.