Good article. If you're compiling C with MSVC then you can use SAL annotations [1] which serve the same purpose.
[1] https://learn.microsoft.com/en-us/cpp/code-quality/annotatin...
[1] https://learn.microsoft.com/en-us/cpp/code-quality/annotatin...
As for C folks, I don't have any hopes of them every going down that route.