Skip to content
/ c-sh Public

Preprocess C stdlib & POSIX symbols

Notifications You must be signed in to change notification settings

zowanet/c-sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

c

Invokes your C compiler's preprocessor allowing you to query for the preprocessed result of any symbol.

Supports all of the following, provided the relevant header files are found on your machine in /usr/include/:

  • C Standard Library
  • POSIX Standard Library
  • BSD Standard Library

Installation

Clone this repository, then run ./install. The script will be symlinked into your ~/bin/ directory.

To update, run git fetch origin && git pull origin master.

Usage

c

Outputs

Usage: c SYMBOL

Examples

c PATH_MAX

Outputs

1024
c AF_INET6

Outputs

30
c PRIu64

Outputs

"ll" "u"

About

Preprocess C stdlib & POSIX symbols

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages