📄 pass.h
字号:
/*#define _XOPEN_SOURCE#include<unistd.h> #include<stdio.h>#include<string.h> #include<sys/types.h>*/#define PASWDFILE "passwd"/* #define USABLEUIDFILE "usableuid"*/#define SEPR ':'#define SALT "dt"/*#define newline '\n'*/#define UIDLEN 4/*#define MAXLINE 1024*/#define HDR_OFF 0/*int PASFD=-1;*/struct password{ char *user; char *password; /*int uid; time_t regtime;*/};int UsrStore(char *psd,char *usr);int GetUid();int _pas_Store(char *buf,int paslen);int TestPsd(char *psd,char *usr);struct password *_pas_GetOneRecd(char *buf,struct password *pp);char *_pas_GetOneLine(char *buf);void _pas_SetWorkPoint(off_t offset);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -