How unsafe is std::localtime?
Hiya! I was just completed an example on using streams and when I went to compile, Visual Studio complained that localtime was depreciated and considered unsafe and that I should consider using localtime_s instead. Can anyone tell me "how" unsafe it is? I.e Is it a massive weakness if I use this method. Should I listen, can people run arbitrary code through this or can they just give the program a new time? I also read that microsoft are the ones who have depreciated it, and that localtime is still standard c++. \Who is right? - So confused. -> when am I not though <- Here is the example: https://code.sololearn.com/c60QW3uVGxYd/#cpp