summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/util.c b/src/util.c
index 07d9f2e1..9a835065 100644
--- a/src/util.c
+++ b/src/util.c
@@ -202,25 +202,6 @@ int rmrf(char *path)
return(0);
}
-/* presents a prompt and gets a Y/N answer */
-int yesno(char *fmt, ...)
-{
- char response[32];
- va_list args;
-
- va_start(args, fmt);
- vprintf(fmt, args);
- va_end(args);
- fflush(stdout);
- if(fgets(response, 32, stdin)) {
- trim(response);
- if(!strcasecmp(response, "Y") || !strcasecmp(response, "YES") || !strlen(response)) {
- return(1);
- }
- }
- return(0);
-}
-
/* output a string, but wrap words properly with a specified indentation
*/
void indentprint(char *str, int indent)