CertC++-FIOΒΆ

Input Output

Nested Rules

CertC++-FIO30

Exclude user input from format strings

CertC++-FIO34

Distinguish between characters read from a file and EOF or WEOF

CertC++-FIO37

Do not assume that fgets() or fgetws() returns a nonempty string when successful

CertC++-FIO38

Do not copy a FILE object

CertC++-FIO39

Do not alternately input and output from a stream without an intervening flush or positioning call

CertC++-FIO40

Reset strings on fgets() or fgetws() failure

CertC++-FIO41

Do not call getc(), putc(), getwc(), or putwc() with a stream argument that has side effects

CertC++-FIO42

Close files when they are no longer needed

CertC++-FIO47

Use valid format strings

CertC++-FIO50

Do not alternately input and output from a file stream without an intervening positioning call

CertC++-FIO51

Close files when they are no longer needed

Options