cctools
console_login.h
Go to the documentation of this file.
1/*
2Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
3Copyright (C) 2022 The University of Notre Dame
4This software is distributed under the GNU General Public License.
5See the file COPYING for details.
6*/
7
8#ifndef CONSOLE_LOGIN_H
9#define CONSOLE_LOGIN_H
10
25int console_login(const char *service, char *name, int namelen, char *pass, int passlen);
26
35int console_input(const char *prompt, char *buf, int buflen);
36
37#endif
int console_input(const char *prompt, char *buf, int buflen)
Read a string from the console.
int console_login(const char *service, char *name, int namelen, char *pass, int passlen)
Read a name and password from the console.