Question: Appendix A: listnode.h The provided listnode.h contains a self - referential structure declaration which you will be using in the project to represent the List

Appendix A: listnode.h
The provided listnode.h contains a self-referential structure declaration which you will be using in the
project to represent the List Nodes. Below is a detailed definition of the provided self-referential
structure.
typedef struct ListNode{
char * command; // the command for the List Node
char ** arguments; // an array of char pointers. NOTE: argv[0] should be the command
with the remainder of argv[...] being the command line arguments typed after the command.
The index following the last command line argument must be set to the NULL pointer
struct ListNode * next; // a pointer to the next List Node
int id; // the id of the List Node
int arguments_length; // the length of the arguments array excluding the ending NULL
pointer
char * file_contents; // represents the file contents of the List Node
}ListNode;
NOTE: Do not modify the members or name of the given struct declaration in listnode.h. Do not add
additional members.
Appendix B: driver.py output
If you run the provided driver.py tester file, you will see an output produced that will award points
accordingly. The tester will award points from 0-2 for compilation if you receive a 0 then your code
could not compile; if you receive a 1 then your code compiles but produced warnings; if you receive a 2
then your code compiles with no warnings.
Additional tester output will shows points awarded for the provided test cases with scores ranging from
0-2 if you receive a 0 then your output did not match the expected output and had a memory leak; if
you have a 1 then your output matched the expected output but had a memory leak for the test case; if
you receive a 2 then your output matched the expected output and had no memory leak for the test
case
An example of a perfect output produced by the driver.py tester would look like the following:
{"scores": {"compiles": 2,"cd_test": 2,"cd_test_invalid": 2, "execute-test": 2, "open_test": 2}}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!