Unified warning prompts into new function UTIL_requireUserConfirmationToProceed()
This commit is contained in:
1 parent
dde97de6c4
commit
aab11ce3db
3 files changed
+28
-23
No files matched your search
@@ -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