Versions Compared

Key

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

...

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

...

Code Block
bgColor#ccccff
int fd = open(
           file_name, 
           O_CREAT | O_WRONLY, 
           file_access_permissions
         );
if (fd == -1){
  /* Handle Error */
}

...