Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Welcome 🤗! In the next ~4h we will cover:

The word string has been used to mean any items arranged in a line, series, etc, for centuries. Auckland Museum, CC BY 4.0 Source

The word string has been used to mean any items arranged in a line, series, etc, for centuries.
Auckland Museum, CC BY 4.0 Source

Motivation

  1. Strings: We use strings to input/output data to/from the computer. A programming language requires functions to process language.

  2. Formatted IO: We need functions to present the results in a user-friendly way (can be either a human or a computer).

Learning goals

Preparation Review

E: Teach your peers

Coding

String operations

Formatted string IO

Tokenize

E: Reflection

Let us revisit our learning goals:

  • Use common strings functions like concatenation, searching, transformation

  • Input and output formatted strings using sprintf and sscanf

  • Split on tokens using strtok_r or strsep

  • Define an array with an element counter

  • Explain how putchar and other IO functions like printf can be used in a microcontroller which does not necessarily have a terminal

A type case and typeset matter in a composing stick. You don’t need a stick to format text.
Willi Heidelbach, CC BY-SA 3.0 Source

A type case and typeset matter in a composing stick. You don’t need a stick to format text.
Willi Heidelbach, CC BY-SA 3.0 Source