7.5. Generating C Function Prototypes from C Source Code Using cproto

The cproto utility is used to create function prototypes from C source code files. It can also convert function definition style. The latest version can be downloaded from http://sourceforge.net/projects/cproto/.

At the time of writing this book, version 4.6 is available in source code form. You can download the file, untar it and compile it using the following sequence of commands.

tar zxvf cproto-4.6.tar.gz
cd cproto-4.6
./configure
make
make install

It can read existing C files or take its input from standard input. This utility is not extensively used in C software development but may be useful in some cases.

Get Linux Development Platform: Configuring, Using, and Maintaining a Complete Programming Environment, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.