(mh_error): Moved from mh_error.c
Showing
1 changed file
with
10 additions
and
0 deletions
... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment