|
You are here |
saagarjha.com | ||
| | | | |
cigix.me
|
|
| | | | | [AI summary] The provided text is a detailed excerpt from the C11 standard, specifically focusing on the C programming language's concurrency and synchronization mechanisms. It outlines the concepts of atomic operations, memory ordering, and the 'happens before' relationship, which are crucial for ensuring correct and predictable behavior in multi-threaded programs. The text also touches on environmental considerations, such as character sets and their representation in source and execution environments. The content is highly technical and intended for developers and language designers familiar with concurrent programming and low-level system interactions. | |
| | | | |
joellaity.com
|
|
| | | | | ||
| | | | |
vlad.website
|
|
| | | | | The default C string handling functions have a lot of problems. The biggest of these issue is the fact that they are unsafe, in the sense that they can lead to buffer overflows by copying something past the end of a string. There are safer versions, such as strlcpy, but they also have their own issues, such as implicit truncation of strings. I needed a more reliable set of string handling functions, so I created pstr, which is a set of functions that allows you to more easily work with static C strings while preventing buffer overflows and truncation, so you don't have to worry worrying about safety as much. pstr has two principles: | |
| | | | |
gist.github.com
|
|
| | | GitHub Gist: instantly share code, notes, and snippets. | ||