man(1) Manual page archive


     MKPTYPES(4)                                           MKPTYPES(4)

     NAME
          mkptypes - C prototype extractor

     SYNOPSIS
          mkptypes [ -ensxzA ] [ -p X ] file.c ...

     DESCRIPTION
          Mkptypes is an ANSI prototype generator that takes one or
          more C source code files, and produces a list of function
          prototypes for the external functions defined in the input
          source files. There are several options to control what is
          generated.

          -e   put an explicit extern keyword in declarations.

          -n   add line numbers of declarations as comments.

          -p X use X as the prototype macro's name, the default is _P.

          -s   Include declarations for static as well as global func-
               tions.

          -x   Add parameter names to prototypes.

          -z   Add prototype macro in definition.

          -A   define prototype macro, this generates header files
               that can be compiled under ANSI or K&R C.