ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
password.h
Go to the documentation of this file.
1
15
16#pragma once
17
18#include <libplatform/question.h>
19#include <stddef.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
31#define PASSWORD_MAX_LEN 260
32
57int prompt_password(const char *prompt, char *password, size_t max_len);
58
79int prompt_password_simple(const char *prompt, char *password, size_t max_len);
80int prompt_password_simple_kind(const char *prompt, char *password,
81 size_t max_len, ui_prompt_kind_t kind);
82
83#ifdef __cplusplus
84}
85#endif
86
int prompt_password(const char *prompt, char *password, size_t max_len)
Prompt the user for a password with secure input.
Definition password.c:15
int prompt_password_simple_kind(const char *prompt, char *password, size_t max_len, ui_prompt_kind_t kind)
Definition password.c:39
int prompt_password_simple(const char *prompt, char *password, size_t max_len)
Prompt the user for a password with simple formatting.
Definition password.c:34