password

const char* password()

Returns a null terminated string containing the current password setting for the terminal, or null if the terminal has no password.