mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
very first release
This commit is contained in:
parent
ee8d92fefa
commit
cb5459aed7
20 changed files with 428 additions and 89 deletions
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <ctype.h>
|
||||
#include "types.h"
|
||||
|
@ -52,3 +53,15 @@ print_string( FILE *fp, byte *p, size_t n )
|
|||
putc(*p, fp);
|
||||
}
|
||||
|
||||
int
|
||||
answer_is_yes( const char *s )
|
||||
{
|
||||
if( !stricmp(s, "yes") )
|
||||
return 1;
|
||||
if( *s == 'y' && !s[1] )
|
||||
return 1;
|
||||
if( *s == 'Y' && !s[1] )
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue