Skip to content

Add "x" mode to fopen/ti_Open #796

@ZERICO2005

Description

@ZERICO2005

The "x" flag was added in C11/C++17, and prevents already existing files from being overwritten.
https://en.cppreference.com/c/io/fopen

File access mode flag "x" can optionally be appended to "w" or "w+" specifiers. This flag forces the function to fail if the file exists, instead of overwriting it.

There are two ways to implement this:

  • Add the "x" flag just to fopen (probably easier since no assembly code is involved)
  • Add the "x" flag to ti_Open (which in turn adds it to fopen)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions