typestar

Strings & text

13 steps in 5 sets of C.

C strings are a convention, not a type: a pointer and a promise that there is a zero byte somewhere ahead. Everything in this tour follows from that.

Copying and building, comparing and searching, splitting and parsing, and transforming. Thirteen steps, and roughly half of them are about not walking off the end of a buffer.

Start this tour

Copying & building

Comparing & searching

Splitting & parsing

Transforming

Encore

  • csv_parse.cA complete CSV reader: split lines into fields, trim them, report a summary.

The other C tours