You can comment out code that may be broken.
Code:
#include <stdio.h>
#include <ctypes.h>
#include <conio.h>
#include "my_menu.h"
int change_menu(menu *m) {
m->title = "erroneous code";
return m.status; //also incorrect
}
int test_file(const char *filename) {
strcpy(filename, "help.txt");
return -1;
}
int main(void) {
menu m;
change_menu(&m);
return 0;
}
There are several examples of errors here so rather than delete functions you can do this.
Code:
#include <stdio.h>
#include <ctypes.h>
//#include <conio.h>
//#include "my_menu.h"
/****comment out evil functions****
int change_menu(menu *m) {
m->title = "erroneous code";
return m.status; //also incorrect
}
int test_file(const char *filename) {
strcpy(filename, "help.txt");
return -1;
}
****end of comment****/
int main(void) {
// menu m;
// change_menu(&m);
return 0;
}