Versions Compared

Key

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

...

Non-Compliant Code Example

Code Block
bgColor#ffcccc

if(!fgets(filename, sizeof(filename), stdio)) {
    /* handle error */
}
if(!open(filename, O_RDONLY, 0600)) {
    /* handle error */
}
/* if filename is a fifo or a locked device the program will now hang in the open call */

Compliant Code Example (POSIX)

...