CS 355 - Systems Programming Lab 2 - implementing who
Objective: write a program that can display the list of users currently logged in to the Unix computer.
- Write a C program mywho whose behavior resembles that of the system command who as closely as possible. To decide what information in what format mywho should display, run the standard who command on your computer:
$ who
stan console Sep 17 08:59
stan ttys000 Sep 24 09:21
mywho is not expected to accept any command line arguments.
- A single C source code file with your work.
- One screenshot (in PNG or JPG format) showing the results of executing the standard system command who immediately followed by the results of executing your program mywho on a Linux terminal.