diff options
author | David Shaw <[email protected]> | 2002-04-23 17:21:34 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-04-23 17:21:34 +0000 |
commit | ed34151773b98020abed50a7835f9db440a01b9f (patch) | |
tree | e826fca9970dca3b4b426c87310411cc2304244a | |
parent | fixed bugs in dokumentation (diff) | |
download | gnupg-ed34151773b98020abed50a7835f9db440a01b9f.tar.gz gnupg-ed34151773b98020abed50a7835f9db440a01b9f.zip |
* util.h: New function answer_is_yes_no_default() to give a default
answer.
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/util.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 76b585d1a..01a57e26a 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2002-04-23 David Shaw <[email protected]> + + * util.h: New function answer_is_yes_no_default() to give a + default answer. + 2002-04-22 Stefan Bellon <[email protected]> * util.h [__riscos__]: Removed riscos_open, riscos_fopen and diff --git a/include/util.h b/include/util.h index ab94cf697..0d90c7e95 100644 --- a/include/util.h +++ b/include/util.h @@ -164,6 +164,7 @@ void print_string( FILE *fp, const byte *p, size_t n, int delim ); void print_utf8_string( FILE *fp, const byte *p, size_t n ); void print_utf8_string2( FILE *fp, const byte *p, size_t n, int delim); char *make_printable_string( const byte *p, size_t n, int delim ); +int answer_is_yes_no_default( const char *s, int def_answer ); int answer_is_yes( const char *s ); int answer_is_yes_no_quit( const char *s ); |