cundecl(1)

cundecl1

Encode c type declarations

Usage

cundecl [-V] [-o file] [file ...]

Overview

The cundecl utility reads a verbose english description and produces a C type declaration. Casts are accepted as well.

The options are as follows:

-o file

Set the output destination to file.

-V

Print version information on standard output then exit.

Examples

declare s as pointer to char;
declare x as function (fmt as pointer to const char, ...) returning int;
cast s into pointer to const char;
cast f into pointer to function (int) returning void;

Releases

15 releases since Debian 2.0 (Hamm); the text changed 1 time.

  1. 2.0–2.2
  2. 3.0–13

Standards

The cundecl utility is expected to be ANSI X3.159-1989 (“ANSI C89”) compatible.

Authors

Sandro Sigala <[email protected]>. Based on cdecl written and put in the public domain by Graham Ross.

From cutils 1.6-7 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.