Question: CS 355 - Systems Programming Lab 4 - implementing who Objective: write a program that can display the list of users currently logged in to
CS 355 - Systems Programming Lab 4 - implementing who Objective: write a program that can display the list of users currently logged in to the Unix computer. What to do? 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. You may not use fopen() and fgets() to read the data. What to submit? 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.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
