Imported reiserfsprogs-3.6.20
This commit is contained in:
1 parent
0ed773997f
commit
dac518d099
189 files changed
+43353
-29787
No files matched your search
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright 1996-2004 by Hans Reiser, licensing governed by
|
||||
* reiserfsprogs/README
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include "util/print.h"
|
||||
#include <string.h>
|
||||
|
||||
int util_user_confirmed (FILE * fp, char * q, char * yes) {
|
||||
char answer[4096];
|
||||
|
||||
fprintf (fp, "%s", q);
|
||||
|
||||
if (fgets(answer, sizeof(answer), stdin) == NULL ||
|
||||
(strlen(answer) != strlen(yes) || strcmp(yes, answer)))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
#define BANNER \
|
||||
"Copyright (C) 2001-2005 by Hans Reiser, " \
|
||||
"licensing governed by reiserfsprogs/COPYING."
|
||||
|
||||
void util_print_banner(char *name) {
|
||||
fprintf(stderr, "%s %s\n%s\n", name, VERSION, BANNER);
|
||||
}
|
||||
Reference in new issue
Block a user