Postfix3.3.1
vstring_vstream.h
[詳解]
1 #ifndef _VSTRING_VSTREAM_H_INCLUDED_
2 #define _VSTRING_VSTREAM_H_INCLUDED_
3 
4 /*++
5 /* NAME
6 /* vstring_vstream 3h
7 /* SUMMARY
8 /* auto-resizing string library
9 /* SYNOPSIS
10 /* #include <vstring_vstream.h>
11 /* DESCRIPTION
12 
13  /*
14  * Utility library.
15  */
16 #include <vstream.h>
17 #include <vstring.h>
18 
19  /*
20  * External interface.
21  */
25 extern int WARN_UNUSED_RESULT vstring_get_bound(VSTRING *, VSTREAM *, ssize_t);
28 
29  /*
30  * Backwards compatibility for code that still uses the vstring_fgets()
31  * interface. Unfortunately we can't change the macro name to upper case.
32  */
33 #define vstring_fgets(s, p) \
34  (vstring_get((s), (p)) == VSTREAM_EOF ? 0 : (s))
35 #define vstring_fgets_nonl(s, p) \
36  (vstring_get_nonl((s), (p)) == VSTREAM_EOF ? 0 : (s))
37 #define vstring_fgets_null(s, p) \
38  (vstring_get_null((s), (p)) == VSTREAM_EOF ? 0 : (s))
39 #define vstring_fgets_bound(s, p, l) \
40  (vstring_get_bound((s), (p), (l)) == VSTREAM_EOF ? 0 : (s))
41 #define vstring_fgets_nonl_bound(s, p, l) \
42  (vstring_get_nonl_bound((s), (p), (l)) == VSTREAM_EOF ? 0 : (s))
43 
44 /* LICENSE
45 /* .ad
46 /* .fi
47 /* The Secure Mailer license must be distributed with this software.
48 /* AUTHOR(S)
49 /* Wietse Venema
50 /* IBM T.J. Watson Research
51 /* P.O. Box 704
52 /* Yorktown Heights, NY 10598, USA
53 /*
54 /* Wietse Venema
55 /* Google, Inc.
56 /* 111 8th Avenue
57 /* New York, NY 10011, USA
58 /*--*/
59 
60 #endif
int WARN_UNUSED_RESULT vstring_get_nonl(VSTRING *, VSTREAM *)
int WARN_UNUSED_RESULT vstring_get_bound(VSTRING *, VSTREAM *, ssize_t)
#define WARN_UNUSED_RESULT
Definition: sys_defs.h:1662
int WARN_UNUSED_RESULT vstring_get_null(VSTRING *, VSTREAM *)
int WARN_UNUSED_RESULT vstring_get_null_bound(VSTRING *, VSTREAM *, ssize_t)
int WARN_UNUSED_RESULT vstring_get_nonl_bound(VSTRING *, VSTREAM *, ssize_t)
int WARN_UNUSED_RESULT vstring_get(VSTRING *, VSTREAM *)