Versions Compared

Key

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

...

This non-compliant code example relies exclusively on the file name to identify the file.

Code Block
bgColor#FFCCCC
intFILE *fd = openfopen(filename, O_RDWR"r");
if (fd != -1) {
   ...	    /* file opened */
}
closefclose(fd);

Compliant Solution (POSIX)

...