X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a77de92766e31f0d8973a9bc303574c3bbe4f82f..5c3a50d71b845855f62ab1927050f659dbe1b7e9:/h/mhparse.h diff --git a/h/mhparse.h b/h/mhparse.h index b6754794..9b058e68 100644 --- a/h/mhparse.h +++ b/h/mhparse.h @@ -418,10 +418,14 @@ char *output_params(size_t initialwidth, PM params, int *offsetout, * last - Pointer to tail of linked list * name - Name of parameter * value - Value of parameter + * nocopy - If set, will use the pointer values directly for "name" + * and "value" instead of making their own copy. These + * pointers will be free()'d later by the MIME routines, so + * they should not be used after calling this function! * - * Returned allocated parameter element + * Returns allocated parameter element */ -PM add_param(PM *first, PM *last, const char *name, const char *value); +PM add_param(PM *first, PM *last, char *name, char *value, int nocopy); /* * Retrieve a parameter value from a parameter linked list. Convert to the