Skip to content
systemcoding.dev

Tag

beginner

445 posts

Flat illustration of a shield with a lock, a key and a password field, with the C, Rust and OpenSSL logos.
Security

Off-by-One Errors in C String Handling

One byte too few for the terminating NUL is enough to corrupt memory. See the common off-by-one patterns in C strings and how to write them correctly.

6 min read
Flat illustration of parallel threads meeting at a mutex, with the C, Go and Erlang logos.
Concurrency

Create and Join Threads with pthread_create

Start threads with pthread_create, wait for them with pthread_join and check the error codes correctly. Includes a complete C program and the mistakes to avoid.

7 min read