Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
...
FILE * fptr = fopen(file_name, "w");
if (!fptr){   
  /* Handle Error */
}
...

Compliant Code Solution 2

...

Code Block
...
FILE * fptr = fopen_s(file_name, "w");
if (!fptr) {   
  /* Handle Error */ 
}
}
...
Code Block

References

...