3 ms·
> There's no standard C function for this. My colleague came up with the following nice trick. One of the big things about C is that there is no standard libra
by bitwize 5y ago
> There's no standard C function for this. My colleague came up with the following nice trick.
One of the big things about C is that there is no standard library function for anything remotely nontrivial. So successfully coding in C relies on "tricks", and snippets and lore that have been passed on over the years.
Rust, meanwhile, has a check_for_all_zeroes crate or something.