| 616 | } |
| 617 | |
| 618 | const char *hiddenpwd(const char *pwd, int showchars) |
| 619 | { |
| 620 | static int sc = 3; |
| 621 | static string text; |
| 622 | copystring(text, pwd); |
| 623 | if(showchars > 0) sc = showchars; |
| 624 | for(int i = (int)strlen(text) - 1; i >= sc; i--) text[i] = '*'; |
| 625 | return text; |
| 626 | } |
| 627 | |
| 628 | int getlistindex(const char *key, const char *list[], bool acceptnumeric, int deflt) |
| 629 | { |
no test coverage detected