Answer:
Input-Output rule:
char *file_name:
FILE *f+ptr;
f_ptr = fopen(file_name, "w");
if(f_ptr == NULL){
}
if(fclose(f_ptr)!=0){
}
if(remove(file_name) !=0){
}
Expression:
void set_fl(int num ,int *s_fl){
if(NULL == s_fl){
return;
}
if(num>0){
*s_fl =1;
}
else if(num <0) {
*s_fl = -1;
}
}
int is_negative(int num) {
int s;
set_fl(num , &s);
return s<0;
Step-by-step explanation:
Computer Emergency Response Team(CERT) has found most vulnerabilities discovered in applications stem from a comparatively small number of common programming errors that developers repeatedly make. The CERT secure coding initiative is functioning to determine secure coding standards for commonly used programming languages and to advance the practice of secure coding.
There are many security coding practices:
SEI CERT C coding standard:
The C rules and proposals are a piece ongoing and reflect the present thinking of the secure coding community. As rules and proposals mature, they're published in report or book form as official releases.