?? getlogin.3
字號:
.TH GETLOGIN 3 .SH NAMEgetlogin \- get login name.SH SYNOPSIS.B char *getlogin();.SH DESCRIPTION.I Getloginreturns a pointer tothe login nameas found in.IR /etc/utmp .It may be usedin conjunctionwith.I getpwnamto locate the correctpassword file entrywhen the same useridis shared by severallogin names..PPIf.I getloginis called within a processthat is not attached to atypewriter, it returns NULL.The correct procedurefor determining the login nameis to first call.I getloginand if it fails,to call.IR getpwuid ..SH FILES/etc/utmp.SH "SEE ALSO"getpwent(3), getgrent(3), utmp(5).SH DIAGNOSTICSReturns NULL (0) if name not found..SH BUGSThe return values point to static datawhose content is overwritten by each call.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -