o0'.
o0'.

Reputation: 11863

automatically generating .h from .cpp/.c

Is there a command line tool to automatically generate a .h from its .cpp or .c?

It seems like a very obvious thing to do, I don't know why it never dawned on me before now...

Of course, in the .h there should be more things than just function prototypes, so the tool could be non-trivial. Or could be trivial, requiring you to include two .h: the generated one and the custom one.

Anyway, I'd rather avoid reinventing the wheel, that's why I'm asking if it already exists.

Upvotes: 5

Views: 1157

Answers (1)

Lior Cohen
Lior Cohen

Reputation: 9055

Here you go:

http://www.hwaci.com/sw/mkhdr/

Upvotes: 3

Related Questions