Skip to content
systemcoding.dev

Tag

c

362 posts

Flat illustration of a browser and a server trading a request and a response, with the C, Wireshark and Linux logos.
GPU

Read Gamepads With the SDL Gamepad API

Detect controllers, read buttons, sticks and triggers with the SDL 3.2 gamepad API in C, apply dead zones, handle hot-plugging and add rumble.

8 min read
Flat illustration of two options weighed side by side, with the C, Linux and GNU logos.
Networking

Level-Triggered vs Edge-Triggered epoll

Compare epoll level-triggered and edge-triggered modes with EPOLLET, see exactly when each reports readiness, and pick the right one for your server.

6 min read
Flat illustration of a test report with one failing test, with the C, GitHub Actions and GitLab logos.
Debugging

Run Valgrind Memcheck in CI as a Merge Gate

Run Valgrind Memcheck on your unit tests in CI with exit codes, suppressions and XML output so a new leak or invalid access fails the build before it merges.

6 min read
Flat illustration of network packets crossing between two hosts, with the C, Linux and Rust logos.
Networking

Build an epoll Event Loop in C Step by Step

Write a single-threaded TCP echo server on Linux with epoll_create1, epoll_ctl and epoll_wait, using non-blocking sockets and a clean accept and read loop.

8 min read