diff options
| author | mbalmer <mbalmer@NetBSD.org> | 2012-03-02 14:27:48 +0000 |
|---|---|---|
| committer | mbalmer <mbalmer@NetBSD.org> | 2012-03-02 14:27:48 +0000 |
| commit | 71dba992484f87e6c8dd5206e1174bb3f225e4d4 (patch) | |
| tree | d7a93e8f6dbdfab26d50c5483fe09b6b04d13185 /usr.bin/msgc/msg_sys.def | |
| parent | ee1607af4ea270a1ab4a5afeb57de48478398283 (diff) | |
Add msg_printf(fmt, ...), a function to display raw messages without
going through the message catalog.
Diffstat (limited to 'usr.bin/msgc/msg_sys.def')
| -rw-r--r-- | usr.bin/msgc/msg_sys.def | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.bin/msgc/msg_sys.def b/usr.bin/msgc/msg_sys.def index 2ca02b86838..ada119cc8d2 100644 --- a/usr.bin/msgc/msg_sys.def +++ b/usr.bin/msgc/msg_sys.def @@ -1,4 +1,4 @@ -/* $NetBSD: msg_sys.def,v 1.39 2012/03/02 13:11:57 mbalmer Exp $ */ +/* $NetBSD: msg_sys.def,v 1.40 2012/03/02 14:27:48 mbalmer Exp $ */ /* * Copyright 1997 Piermont Information Systems Inc. @@ -310,6 +310,16 @@ msg_display_add(msg msg_no, ...) va_end(ap); } +void +msg_printf(const char *fmt, ...) +{ + va_list ap; + + va_start(ap, fmt); + (void)_msg_vprintf(1, fmt, ap); + va_end(ap); +} + static void _msg_vprompt(const char *fmt, int flags, const char *def, char *val, size_t val_buf_len, va_list ap) |
