3 points · by silentbicycle · 12y ago · 3 comments
"bool ok = socket99_open(&cfg, &res);"
Nicer C99 APIs with Designated Initializers
While working on a library for property-based testing in C, I found a trick to making nicer library interfaces in C99: “designated initializers.”
Atomic Spin