Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 401
o0'. Avatar asked Oct 23 '22 08:10

o0'.


1 Answers

Here you go:

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

like image 148
Lior Cohen Avatar answered Nov 09 '22 03:11

Lior Cohen