Search Results for: list

How Variable Argument Lists Work in C

Variable argument lists are very arcane in the world of C. You’ll see them expressed in function signatures as … at the end of the parameter list, but you may not understand how they work or what they do.

Posted in C/C++ | Tagged , , , | 11 Comments

List Initialization

One of the new features in C++0x has been to make a consistent mechanism for initialization via a list. In previous versions of C++, it was inconsistent how you would initialize lists which would lead to a small amount of … Continue reading →

Posted in C/C++ | Tagged , | 2 Comments

What’s New in C in 2023?

The year is 2023 and you’re asking “What’s new in C?” Surely the answer is “absolutely nothing”, right? Wrong! C23 will be released in the coming months (likely in early 2024), and this is a whirlwind tour of what changes … Continue reading →

Posted in C/C++ | Tagged , | 11 Comments

Source Indexing SVN Repositories is Broken

Some of us spend a fair amount of time pouring through crash dumps generated on Windows. For us, the symbol server support provided by Microsoft’s debugging engines is a godsend. However, source indexing is an even bigger boon because it … Continue reading →

Posted in Win32 | Tagged , , | 1 Comment

Tidbits

As part of my day job, I have a weekly email discussion with other engineers about a random, small topic in C or C++. These discussions are usually not large enough to warrant a full blog post, but can be … Continue reading →

4 Comments

Describing the MSVC ABI for Structure Return Types

An ABI is an “application binary interface”, which is basically a contract between pieces of executable code on how to behave. The ABI dictates things like how parameters are passed, where return values go, how to create and destroy stack … Continue reading →

Posted in C/C++, Win32 | Tagged , , , , | 6 Comments

The Anatomy of a Code Review

Programmers have many tools available to them for improving the quality of their code. One of my personal favorites is the code review — getting another set of eyes on my source code always challenges my assumptions, and invariably flushes … Continue reading →

Posted in Uncategorized | Tagged , | Comments Off on The Anatomy of a Code Review

Varargs? More like Arghargs!

This was a silly mistake on my part, but one which took me several hours to track down. In retrospect, I had everything at my disposal to tell me exactly what the problem was, I just didn’t notice it. It … Continue reading →

Posted in C/C++ | Comments Off on Varargs? More like Arghargs!

Lovely Holiday

I had a very nice holiday season this year, and I hope you did as well. My wife and I went down to TX to visit her family, and spend time lounging in a beach house. I didn’t write any … Continue reading →

Posted in Uncategorized | 2 Comments

Whining about iterators

In the STL, there are multiple classes of iterators: random access, bidirectional, forward, input, and output. I’d like to discuss the different types of iterators in a bit more detail, so that I can whine about “missing” functionality.

Posted in C/C++ | Tagged , | Comments Off on Whining about iterators