diff options
author | Werner Koch <wk@gnupg.org> | 2003-09-18 17:51:01 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2003-09-18 17:51:01 +0200 |
commit | 210b7257483b4cbed1eccce8afb50a142f085f52 (patch) | |
tree | c5be93cc4d7f041279c9d59305909f9ca6eb949d /common/ttyio.h | |
parent | Post release version number update (diff) | |
download | gnupg2-210b7257483b4cbed1eccce8afb50a142f085f52.tar.xz gnupg2-210b7257483b4cbed1eccce8afb50a142f085f52.zip |
(tty_fprintf): New.
(tty_print_string, tty_print_utf8_string2)
(tty_print_utf8_string): Made P argument const byte*.
Diffstat (limited to 'common/ttyio.h')
-rw-r--r-- | common/ttyio.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/common/ttyio.h b/common/ttyio.h index b3ca7dcaf..6fa7400a9 100644 --- a/common/ttyio.h +++ b/common/ttyio.h @@ -23,13 +23,17 @@ const char *tty_get_ttyname (void); int tty_batchmode (int onoff); #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5 ) -void tty_printf (const char *fmt, ... ) __attribute__ ((format (printf,1,2))); +void tty_printf (const char *fmt, ... ) + __attribute__ ((format (printf,1,2))); +void tty_fprintf (FILE *fp, const char *fmt, ... ) + __attribute__ ((format (printf,2,3))); #else void tty_printf (const char *fmt, ... ); +void tty_fprintf (FILE *fp, const char *fmt, ... ); #endif -void tty_print_string (unsigned char *p, size_t n); -void tty_print_utf8_string (unsigned char *p, size_t n); -void tty_print_utf8_string2 (unsigned char *p, size_t n, size_t max_n); +void tty_print_string (const unsigned char *p, size_t n); +void tty_print_utf8_string (const unsigned char *p, size_t n); +void tty_print_utf8_string2 (const unsigned char *p, size_t n, size_t max_n); char *tty_get (const char *prompt); char *tty_get_hidden (const char *prompt); void tty_kill_prompt (void); |