Fixed parsing telnet NAWS with either size of 255
[rlserver.git] / users.h
blobd5f96a2bcf8b62ba0bc64f1ff03b1fd6221f8676
1 #ifndef __USERS__
2 #define __USERS__
4 #define USER_NAME_LEN 16
5 #define USER_PASS_LEN 16
6 #define USER_EMAIL_LEN 32
8 typedef struct
10 int id;
11 char name[USER_NAME_LEN];
12 char pass[USER_PASS_LEN];
13 char email[USER_EMAIL_LEN];
14 } user;
17 int add_user (user *usr, const char *name, const char *pass, const char *email);
18 int user_login (user *usr, const char *name, const char *pass);
21 #endif