...
The atof, atoi, atol
, and atoll
functions are Obsolete because the strod, strtof, strtol, strtold, strtoll, strotul
, and strtoull
functions can emulate their usage and have more robust error handling capabilities. See guideline INT05-C. Do not use input functions to convert character data if they cannot handle all possible inputs [CERT C Secure Coding Standard 2010].
The fopen
and freopen
functions are Obsolete because the fopen_s
and freopen_s
functions can emulate their usage and improve security by protecting the file from unauthorized access by setting its file protection and opening the file with exclusive access [ISO/IEC WG14 N1173].
The setbuf
function is Obsolete because setbuf
does not return a value and can be emulated using setvbuf
. See guideline FIO12-C. Prefer setvbuf() to setbuf() [CERT C Secure Coding Standard 2010].
The rewind
function is Obsolete because rewind
does not return a value and can be emulated using fseek
. See guideline FIO07-C. Prefer fseek() to rewind() [CERT C Secure Coding Standard 2010].
The asctime
and ctime
functions are Obsolete because they use non-reentrant static buffers and can be emulated using asctime_s
and ctime_s
.
...
To remediate invocations of unchecked Obsolete functions, an application might use inline coding that, in all respects, conforms to this guideline, or an alternative library that, in all respects, conforms to this guideline, or alternative non-Obsolete functions from ISO/IEC TR 24731 (Part 1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
...