fopen_s is not available with the gcc/g++ or clang. When using fopen instead, the program can also be compiled on macOS and Linux. The additional safety introduced by fopen_s shouldn't be required here anyway, as there's already a check for having enough command-line arguments.
fopen_s
is not available with the gcc/g++ or clang. When usingfopen
instead, the program can also be compiled on macOS and Linux. The additional safety introduced byfopen_s
shouldn't be required here anyway, as there's already a check for having enough command-line arguments.