Seeking code stub generator (from header files)

c, c++

Solution

I think stubgen may be what you're after.

Problem

Imagine I have the header files to a subsystem, but no access to the source code. Now I want to generate stubs to match all functions declared in the header files (for testing purposes). I wrote some simple code to do this, but it's not perfect. Does anyone know of any freely available software which will do this? [Update] Five years after asking, this question is still getting upvotes. It was closed as of-topic, which it is nowadays (althoguh it was not when it was originally posted). Fortunately, we can now ask for software recommendations at https://softwarerecs.stackexchange.com/

Original source