摘要: /* who1.c - a first version of the who program * open,read UTMP file, and show results */#include<stdio.h>#include<utmp.h>#include<fcntl.h>#include<unistd.h>#include<stdlib.h>#define SHOWHOSTvoid show_info(struct utmp * utbufp);int main(){ struct utmp current_record; in 阅读全文
posted @ 2012-12-07 15:13 布兰姥爷 阅读(448) 评论(0) 推荐(0) 编辑