Lines Matching refs:buffer
62 char *getpass_r(const char *prompt, char *buffer, size_t buflen) in getpass_r() argument
79 buffer[0] = '\0'; in getpass_r()
84 &iosb, 0, 0, buffer, buflen, 0, 0, in getpass_r()
88 buffer[iosb.iosb$w_bcnt] = '\0'; in getpass_r()
92 return buffer; /* we always return success */ in getpass_r()
99 char *getpass_r(const char *prompt, char *buffer, size_t buflen) in getpass_r() argument
105 buffer[i] = (char)getch(); in getpass_r()
106 if(buffer[i] == '\r' || buffer[i] == '\n') { in getpass_r()
107 buffer[i] = '\0'; in getpass_r()
111 if(buffer[i] == '\b') in getpass_r()
120 buffer[buflen-1] = '\0'; in getpass_r()
122 return buffer; /* we always return success */ in getpass_r()