Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: change compliant solution to use copy of the pointer

...

In this compliant solution, the original a copy of the pointer to the FILE object is used in the call to fputs().

Code Block
bgColor#ccccff
#include <stdio.h>

int main(void) {
    FILE *my_stdout = stdout;
    fputs("Hello, World!\n", my_stdout);
    return 0;
}

Risk Assessment

...