Commit 06e33169 06e331692c41154b63be68abdaef824165134599 by Sergey Poznyakoff

(mh_error): Moved from mh_error.c

1 parent e7045ced
...@@ -1020,3 +1020,13 @@ mh_draft_message (const char *name, const char *msgspec, char **pname) ...@@ -1020,3 +1020,13 @@ mh_draft_message (const char *name, const char *msgspec, char **pname)
1020 return rc; 1020 return rc;
1021 } 1021 }
1022 1022
1023 void
1024 mh_error(const char *fmt, ...)
1025 {
1026 va_list ap;
1027 va_start (ap, fmt);
1028 fprintf (stderr, "%s: ", program_invocation_short_name);
1029 vfprintf (stderr, fmt, ap);
1030 fprintf (stderr, "\n");
1031 va_end (ap);
1032 }
......