-
Pick the Alphabet to Suit the Reader: Damm64 and Damm93 Join Damm32
damm64 (base64url) and damm93 (visible ASCII without the backslash) join damm32 as Damm check digit libraries in C, PHP and JavaScript. Which to use depends on who has…
-
Simple POSIX Semaphore Library for Windows
Update (1 November 2026). The library was modernised on 21 October 2026. The 2.0.0 changelog documents fixes for broken unnamed semaphores, a use-after-free in sem_close, incorrect sem_open behaviour,…
-
Tracking down global variables in C code
I recently had the fun job of making some complex legacy C code (200,000+ lines) thread safe. Of course there were globals spread through the code so finding…
-
Base32 implementation of the Damm error detection algorithm in PHP
Update (1 November 2026). The Damm32 repository was modernised on 21 October 2026. Version 2.0.0 includes matching C, PHP and JavaScript implementations, a reusable C library, command-line tools,…
-
Base32 implementation of the Damm error detection algorithm in C
Update (1 November 2026). The Damm32 repository was modernised on 21 October 2026. Version 2.0.0 includes matching C, PHP and JavaScript implementations, a reusable C library, command-line tools,…
-
setrlimit not raising a signal with SIGXCPU
I ran into a unusual linux bug of late using RLIMIT_CPU to kill zombie processes that ran for longer than 15 seconds. The basic code I was using was:…
-
How to create a Windows program that works both as a GUI and console application
It would be very nice to be able to make Windows applications that can act as either a GUI or console application depending on how they are used…
-
Installing Splint on Mac OSX
Splint is a really useful utility to check your source code, but it doesn't seem to be installed by default on MacOS X. It is not too difficult…