PersonalCorpus 版 (精华区)
发信人: cliff (夺命小辣椒), 信区: Unix
标 题: deluser.c
发信站: 紫 丁 香 (Mon Dec 6 11:18:20 1999) WWW-POST
/* deluser.c, by digger */
#include
#include
#include
#define TRUE 0
#define FALSE -1
extern char err_info[128]; /* defined in passwdio.c */
extern user_del(char *username); /* defined in passwdio.c */
main(int argc, char **argv )
{
if (argc < 2) {
printf("usage:\t%s username\n", argv[0]);
exit(-1);
}
if (user_del(argv[1]) == TRUE)
printf("user %s deleted successfully\n", argv[1]);
else
printf("failed in deleting user %s: %s\n", argv[1], err_info);
}
--
________________
/________________/|
| | |
| 网 | |
| 络 | |
※ 来源:·紫 丁 香 bbs.hit.edu.cn·[FROM: 202.118.239.10]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.785毫秒