Skip to content
systemcoding.dev

Tag

c

362 posts

Flat illustration of network packets crossing between two hosts, with the C, Wireshark and Linux logos.
Networking

Handle Multiple Clients with select

Build a single-threaded C echo server that serves many clients with select, fd_set, FD_SET and FD_ISSET, and learn why you rebuild the set on every loop.

7 min read
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