-typewriter, it returns NULL.
-The correct procedure for determining the login name is to first call
+terminal, or if there is no entry in
+.I /etc/utmp
+for the process's terminal,
+.I getlogin
+returns a NULL pointer (0).
+A reasonable procedure for determining the login name is to first call