📄 usr.h
字号:
#ifndef USR_H_INCLUDED
#define USR_H_INCLUDED
#include "define.h"
#include <time.h>
namespace gilyou
{
struct user_t
{
char uname[BUFF_SIZE];
char upasswd[BUFF_SIZE];
char home[BUFF_SIZE];
uint ihome;
uint uid; //代表权限
uint gid;
uint deleted;
time_t ctime;
time_t atime;
};
void copy_usr(user_t &to_be_init,user_t for_init);
int get_usr(char uname[],char upasswd[],user_t &usr,bool update_time = true);
bool usr_exists(char uname[]);
extern user_t current_usr;
}
#endif // USR_H_INCLUDED
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -