...
Note that although this example is safer due to sanitizing the data, it is still noncompliant because asctime() is obsolete. See MSC24-C. Do not use deprecated or obsolescent functions.
...
| [ISO/IEC 9899:2011] | Subclause 7.27.3.1, "The asctime Function" |
| [Open Group 2008]IEEE Std 1003.1:2013] | XSH, System Interfaces, asctime"asctime, asctime_r—Convert Date and Time to a String" |
...