3 ms·
gmtime is just not thread-safe that's all, since it returns a static structure; gmtime_r is not banned.
by kazinator 6y ago
gmtime is just not thread-safe that's all, since it returns a static structure; gmtime_r is not banned.
- syncsynchalt 6y agoThanks, I am now a decade out of the C game and I was wracking my brain on what the problem with gmtime would be. My best guess was dodgy is_dst portability /shrug
- EdwardDiego 6y agoYeah, found this which explained it for me :) https://lgtm.com/rules/2154840805/ https://lgtm.com/rules/2154840805/