esmil/musl
View on GitHub ↗ ★ 68 C
3 mentions on Hacker News by 3 people: 0 stories, 3 comments · first 2017-02-21 · latest 2023-02-12
20082026
-
…hasn't improved all that much I'd say... For reference, MUSL also just uses the original approach: https://github.com/esmil/musl/blob/master/src/string/strcpy....
comment by flohofwoe · 2023-02-12 · in Let's write a setjmp -
Here is the musl implementation. > https://github.com/esmil/musl/blob/master/src/string/strtok.... It's a bit longer than 4 lines because strtok does things you should not want. If you insist on parsing that configuration line with strtok,…
comment by jstimpfle · 2018-12-15 · in String tokenization in C -
…musl, which is used on Alpine Linux images for example, will only read it once, and then cache it: https://github.com/esmil/musl/blob/master/src/time/__tz.c#L1... It has a mutex/lock around the use of the TZ info, but avoids re-stat'ing…
comment by pquerna · 2017-02-21 · in How setting the TZ environment variable avoids thousands of system calls