This sounds like trolling, but isn't... I'm genuinely curious about whether it's possible to parse an integer using C's standard library while being memory safe. blog.habets.se/2022/10/No-w...
1 repost17 likes
This sounds like trolling, but isn't... I'm genuinely curious about whether it's possible to parse an integer using C's standard library while being memory safe. blog.habets.se/2022/10/No-w...
1 repost17 likes
oh I've done this for printf for embedded reasons and shouldn't be hard to go the other way! it's a type checked macro: printf!("hello {name}!") zero-cost expands to roughly printf(c"hello %*.s!", name.len(), name.as_ptr()) I should rewrite it for open source and parse integers as well 🤔