renotepad.c
上传用户:minyiyu
上传日期:2018-12-24
资源大小:864k
文件大小:1k
- #include "../../include/bbs.h"
- #include "../../include/permissions.h"
- int
- report()
- {
- return;
- }
- main()
- {
- FILE *rec;
- int i=0;
- struct userec user;
- rec=fopen("/home/bbs/.PASSWDS","rb");
- printf("[1;31;5mUserLevel Records Transfering...n[m");
- while(1)
- {
- if(fread(&user,sizeof(user),1,rec)<=0) break;
- i++;
- printf("%d %stn",i,user.userid);
- if(user.notemode!=3)
- user.userdefine|=DEF_NOTEPAD;
- else
- user.userdefine&=~DEF_NOTEPAD;
- substitute_record("/home/bbs/.PASSWDS",&user,
- sizeof(user),i);
- }
- printf("n[1m%d [32mUserLevel Records Tranfered...[mn",i);
- fclose(rec);
- }