MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / ask_YN

Function ask_YN

src/intrfn.c:897–909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

895}
896
897int ask_YN(WINDOW *window)
898{
899 int res;
900 curs_set(1);
901 wrefresh(window);
902 do
903 {
904 res=toupper(wgetch(window));
905 } while(res!=c_NO && res!=c_YES);
906 curs_set(0);
907 wprintw(window,"%c\n",res);
908 return (res==c_YES);
909}
910
911int ask_confirmation(const char*_format, ...)
912{

Callers 3

ask_confirmationFunction · 0.85
write_MBR_codeFunction · 0.85
write_clean_tableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected