Question: 2 . Exploring envp: a . Modify showEnvp.c so it reports envp addresses in the same style as showArgs 2 displays argv addresses. Save a
Exploring envp: a Modify showEnvp.c so it reports envp addresses in the same style as showArgs displays argv addresses. Save a copy of the output in a file youll need to refer to it in part b Provide a program listing, a status statement and lines of output, but not all the output. b Inside your program use putenv to define one environment variable and setenv to redefine another. Do these values appear in the array envp or environ or both? c Based on the program output sketch a data structure diagram for envp. You only need to include the first environment variable values Hand in a commented listing of your program, proof of testing and a status report. On your cover page, aside from your name, the course code, lab section and the assignment # Make sure you include your student number. If I have to look it up to verify that you are doing the correct exercise marks off. If you do the wrong exercise more marks will be deducted showEnvp.c #include #include #include #include int mainint argc, char argvchar envp int i; fprintfstdoutMy name is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
