/*++ /* NAME /* vstring_vstream 3 /* SUMMARY /* auto-resizing string library, standard I/O interface /* SYNOPSIS /* #include <vstring_vstream.h> /* /* int vstring_get_flags(vp, fp, flags) /* VSTRING *vp; /* VSTREAM *fp; /* int flags /* /* int vstring_get_flags_nonl(vp, fp, flags) /* VSTRING *vp; /* VSTREAM *fp; /* int flags /* /* int vstring_get_flags_null(vp, fp, flags) /* VSTRING *vp; /* VSTREAM *fp; /* int flags /* /* int vstring_get_flags_bound(vp, fp, flags, bound) /* VSTRING *vp; /* VSTREAM *fp; /* ssize_t bound; /* int flags /* /* int vstring_get_flags_nonl_bound(vp, fp, flags, bound) /* VSTRING *vp; /* VSTREAM *fp; /* ssize_t bound; /* int flags /* /* int vstring_get_flags_null_bound(vp, fp, flags, bound) /* VSTRING *vp; /* VSTREAM *fp; /* ssize_t bound; /* int flags /* CONVENIENCE API /* int vstring_get(vp, fp) /* VSTRING *vp; /* VSTREAM *fp; /* /* int vstring_get_nonl(vp, fp) /* VSTRING *vp; /* VSTREAM *fp; /* /* int vstring_get_null(vp, fp) /* VSTRING *vp; /* VSTREAM *fp; /* /* int vstring_get_bound(vp, fp, bound) /* VSTRING *vp; /* VSTREAM *fp; /* ssize_t bound; /* /* int vstring_get_nonl_bound(vp, fp, bound) /* VSTRING *vp; /* VSTREAM *fp; /* ssize_t bound; /* /* int vstring_get_null_bound(vp, fp, bound) /* VSTRING *vp; /* VSTREAM *fp; /* ssize_t bound; /* DESCRIPTION /* The routines in this module each read one newline or null-terminated /* string from an input stream. In all cases the result is either the /* last character read, typically the record terminator, or VSTREAM_EOF. /* The flags argument is VSTRING_GET_FLAG_NONE (default) or /* VSTRING_GET_FLAG_APPEND (append instead of overwrite). /* /* vstring_get_flags() reads one line from the named stream, including the /* terminating newline character if present. /* /* vstring_get_flags_nonl() reads a line from the named stream and strips /* the trailing newline character. /* /* vstring_get_flags_null() reads a null-terminated string from the named /* stream. /* /* the vstring_get_flags<whatever>_bound() routines read no more /* than \fIbound\fR characters. Otherwise they behave like the /* unbounded versions documented above. /* /* The functions without _flags in their name accept the same /* arguments except flags. These functions use the default /* flags value. /* DIAGNOSTICS /* Fatal errors: memory allocation failure. /* Panic: improper string bound. /* 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 /* /* Wietse Venema /* Google, Inc. /* 111 8th Avenue /* New York, NY 10011, 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.