mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
Unified warning prompts into new function UTIL_requireUserConfirmationToProceed()
This commit is contained in:
@ -93,6 +93,12 @@ extern "C" {
|
||||
******************************************/
|
||||
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.
|
||||
*/
|
||||
int UTIL_requireUserConfirmationToProceed(const char* const prompt, const char* const abortMsg, const char* const acceptableLetters);
|
||||
|
||||
|
||||
/*-****************************************
|
||||
* File functions
|
||||
|
Reference in New Issue
Block a user