摘要:
函数:1 #include<unistd.h>2 3 char * getlogin(void);测试函数:1 #include<stdio.h>2 #include<unistd.h>3 4 int main(void){5 char * username;6 username=getlogin();7 printf("the login is %s\n",username);8 return 0;9 }make:1 make:2 cc -g fig8_15.c -o fig8_153 clean:4 rm -rf fig8_15获取该 阅读全文