rxi / aria

A tiny, embeddable lisp-shaped language implemented in C89
MIT License
167 stars 18 forks source link

Secure string implementation… #8

Open jason-c-daniels opened 7 years ago

jason-c-daniels commented 7 years ago

It can be enabled with -DUSE_SECURE_STRINGS. This requires C99 to work.

And an MSVC placating USE_FOPEN_S, used to pass secure compilation checks in VS2015. This requires, of course, MSVC.

However, it's interesting to note that C11 is supposed to support fopen_s. Yet GCC didn't appear to honor this when compiling with -std=c11.

Source: http://en.cppreference.com/w/c/io/fopen