Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

lint/style/require-fopen-binary-flag

Not in any set. Unsafe fix: it can change behaviour.

What it does

The flags in fopen calls must omit t, and b must be omitted or included consistently.

Configuration

[lint.rules]
"style/require-fopen-binary-flag" = "error"

To skip it in some files, add an override or a @pun-ignore-file comment.

Options

Name Type Allowed values Default Upstream name
b-mode bool Any true b_mode

Replaces

More lint/style rules · Edit this page

Last updated on

Was this page helpful?