项目作者: coderarjob

项目描述 :
C declaration to plain english
高级语言: C
项目地址: git://github.com/coderarjob/cdecl.git
创建时间: 2021-04-03T07:55:24Z
项目社区:https://github.com/coderarjob/cdecl

开源协议:MIT License

下载


cdecl - C declaration to plain english

Dependencies

  • cmake
  • UNIX: GCC
  • Windows: Cygwin/Visual C++ Compiler

Bulid

Can be build in Linux, macOS and Windows. Only dependencies are cmake and a C compiler.

  1. > cmake -Bbuild
  2. > cmake --build build

Binary will be in build/bin/.

Usage

Just provide the input in argument.

  1. cdecl <c variable or function declaration>

Example

  1. > ./cdecl "int (*(*foo)(const void *))[3]"
  2. foo is pointer to a function returning pointer to an array of int