Voxelmanip Forums
voxelmanip.se voxelmanip.se
Posted on 2025-02-13 13:00 Link

How (not) to compare strings in C


13 February 2025

When you are previously used to working with higher-level programming languages and pick up a lower-level language, there tends to be a lot of things you previously took for granted working at a higher level that suddenly become visible. And the programmer becomes more thoughtful, more resourceful.

But there are also things that you think may work like they did in the languages you were previously used to, while in reality being completely different. One such example would be strings in C, specifically how to compare two strings against each other, and how not to compare them.
(Read the full blog post)