diff options
author | Jakob Kaivo <jkk@ung.org> | 2024-01-31 16:07:01 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2024-01-31 16:07:01 -0500 |
commit | e700c9df7679b7a4e5da0e8886ff22a4177f4bca (patch) | |
tree | 9ad9dccfd8237a7999f9546c4f00388306b1352b /src/stdio/fopen.c | |
parent | 34386fe72b733e12f5ab45bf1d4f5b59621c3a96 (diff) |
check for undefined fopen()/freopen() modes
Diffstat (limited to 'src/stdio/fopen.c')
-rw-r--r-- | src/stdio/fopen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdio/fopen.c b/src/stdio/fopen.c index 4c9eabd7..dfb4f27c 100644 --- a/src/stdio/fopen.c +++ b/src/stdio/fopen.c @@ -37,6 +37,8 @@ FILE * fopen(const char * restrict filename, const char * restrict mode) return freopen(filename, mode, f); } +CHECK_2(FILE *, NULL, fopen, const char * restrict, const char * restrict) + /*** opens a file stream associated with the file ARGUMENT(filename). |