Unit testing in C: a tutorial with AcuTest, part IIUnit testing in C: a tutorial with AcuTest, part II We continue to explore unit testing in C, using the unit test framework as a prototypical example. We focus on output and test control flow this timJun 12, 2026·8 min read
Character types in CWe want to continue the discussion of escape sequences. As a preparation, we review the different character types in C. The source code, with the possible exception of char and string literals, is written in the source character set. This character s...Aug 11, 2025·5 min read
Escape sequences in CIt is easy to write a string that contains alphanumeric characters. Non-alphanumeric characters must be encoded with an escape sequence. Let us review the details of escape sequences in the C standardAug 4, 2025·5 min read
Floating-Point Formats For You!Introduction Most programming languages have at least one data type that represents integral numbers within a specific range. For example, Python has a built-in data type int that can hold the integers -2147483648 through 2147483647, corresponding to...Apr 22, 2025·15 min read
How to tell your compiler that you have implemented printf-like functionsFunctions such as printf have been a hallmark of C. These variadic functions accept a variable number of arguments as input and convert them into a character sequence according to a format string. For example: int temperature = 20; // ... possibly re...Apr 20, 2025·5 min read
Warning options for printf incantationsThe printf function in C is known for its technical syntax and error proneness. This is shared by its numerous variants, such as snprintf or vsprintf. This article will discuss how your C compiler, GCC or Clang, can help you mitigate these difficulti...Apr 19, 2025·7 min read
/* DISABLES CODE */: When Clang warns about unreachable codeI would like to write about unreachable code in C and C++ and about the pertinent compiler warnings in this context. Sometimes, entire blocks of our C or C++ source codes are unintentionally cut off from the control flow. Consider the following demon...Apr 2, 2025·3 min read