Snippets

Contents

Snippets#

Short pieces of C the operator pastes into a fresh source file or a target’s compilation environment. Each block stands alone.

One-liners

Single-statement idioms: max / min, bit twiddling, swap, array length, sizeof traps.

One-liners

References#

  • Types for the type system these snippets touch.

  • I/O for stdio and file recipes.