News for hackers. Stuff that matters.
Re:Git's list of banned C functions by kazinator on Thursday March 04, 2021 @05:29PM (#26349379)
gmtime is just not thread-safe that's all, since it returns a static structure; gmtime_r is not banned.
Re:Git's list of banned C functions by syncsynchalt on Thursday March 04, 2021 @05:43PM (#26349549)
Thanks, 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
Re:Git's list of banned C functions by EdwardDiego on Thursday March 04, 2021 @11:32PM (#26352722)
Yeah, found this which explained it for me :)

https://lgtm.com/rules/2154840805/