mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
Expand UTIL_requireUserConfirmation to include stdin input check
This commit is contained in:
@ -96,8 +96,9 @@ extern int g_utilDisplayLevel;
|
||||
/**
|
||||
* Displays a message prompt and returns success (0) if first character from stdin
|
||||
* matches any from acceptableLetters. Otherwise, returns failure (1) and displays abortMsg.
|
||||
* If any of the inputs are stdin itself, then automatically return failure (1).
|
||||
*/
|
||||
int UTIL_requireUserConfirmation(const char* prompt, const char* abortMsg, const char* acceptableLetters);
|
||||
int UTIL_requireUserConfirmation(const char* prompt, const char* abortMsg, const char* acceptableLetters, int hasStdinInput);
|
||||
|
||||
|
||||
/*-****************************************
|
||||
|
Reference in New Issue
Block a user