X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c61294eca5edf4f245c2d8818bf53d3bdc3d80c1..9cc2510:/h/mh.h?ds=sidebyside diff --git a/h/mh.h b/h/mh.h index 503797c6..b8c60ca8 100644 --- a/h/mh.h +++ b/h/mh.h @@ -1,4 +1,3 @@ - /* * mh.h -- main header file for all of nmh */ @@ -19,6 +18,12 @@ #define DMAXFOLDER 4 /* typical number of digits */ #define MAXFOLDER 1000 /* message increment */ +/* + * This macro is for use by scan, for example, so that platforms with + * a small BUFSIZ can easily allocate larger buffers. + */ +#define NMH_BUFSIZ (BUFSIZ>=8192 ? BUFSIZ : 8192) + #ifndef FALSE #define FALSE 0 #endif @@ -55,6 +60,7 @@ void charstring_push_back (charstring_t, const char); /* Append possibly multi-byte character(s): */ void charstring_push_back_chars (charstring_t, const char [], size_t, size_t); void charstring_append (charstring_t, const charstring_t); +void charstring_append_cstring (charstring_t, const char []); void charstring_clear (charstring_t); /* Don't store return value of charstring_buffer() and use later after intervening push_back's; use charstring_buffer_copy() instead. */