snprintf can safely format a string into a target buffer
it can also, without writing anything, tell you the size needed to safely format a string into a target buffer
however, this being C, there is (as far as i can find) no helper method to use snprintf to find the size of the buffer you need, allocate it, and then write the formatted string, unless you make it yourself
this is great since writing a wrapper function like this is extremely easy to fuck up, leading to buffer overruns
Thanks Bob!
"Under the new law, the cameras can’t be used for immigration enforcement or tracking protected activities like free speech. They also can’t collect data near protected health care or immigration facilities. Their use is also prohibited around schools, courts, food banks and places of worship."
https://washingtonstatestandard.com/2026/03/30/washington-adds-safeguards-for-flock-cameras/
reposting for the day crowd: I ran into a memcmp implementation that only compared 25% of the bytes, and the issue wasn't caught in the build because the vendor toolchain failed to emit a warning.
