我怎样才能确保不会发生这样的事情?有没有办法用数字显示确切位置?
Name UID GID Dir Host
root 0 0 /root
paingpyi 500 500 /home/paingpyi 192.168.12.1
paingpyi 500 500 /home/paingpyi 192.168.12.1
代码是
printf("Name \t\tUID \tGID \tDir \tHost\n");
printf("%s \t\t%d \t%d \t%s \t%s \n",up->ut_user,pw->pw_uid,pw->pw_gid,pw->pw_dir,up->ut_host);