Question: C code It is required to produce test code necessary to module test a student records module, described externally by the following API: (10 marks)

C code
C code It is required to produce test code necessary to module

It is required to produce test code necessary to module test a student records module, described externally by the following API: (10 marks) /* the longest possible length of a name / \#define LONGEST_NAME 20 /* * Adds student. If firstname too long, truncates * returns: row number on success, 1 on error / const char *ID ) ; /* otherwise fail (1) / int remove_student (const char *ID) ; 1 * Save the entire database: open the file, write all, close file * First line = number of students. * Then one student per line, in the format ID, Iname, fname * Return number of students saved on success, 1 otherwise * / int save ( const char f ilename) ; Write a test harness to perform a module test, being careful to include at least one successful call and one error call for each function to be tested

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 Databases Questions!