indent (Unix)

From Seo Wiki - Search Engine Optimization and Programming Languages

Jump to: navigation, search

indent is a Unix utility that reformats C and C++ code in a user-defined coding style. Support for C++ code is considered experimental.


Examples of usage

The command line

indent somefile.c -st -bad --blank-lines-after-procedures -bli0 -i4 -l79 \
-ncs -npcs -nut -npsl -fca -lc79 -fc1

indents somefile.c in a style resembling BSD/Allman style and writes the result to the standard output.

GNU indent

GNU indent
Original author(s) David Ingamells, Carlo Wood, Joseph Arceneaux, Jim Kingdon, John Bridges
Developer(s) FSF
Stable release 2.2.10 / March 11, 2008; 455113760 ago
Written in C
Operating system Cross-platform
Development status Inactive?
Type source code reformat tool
License GNU General Public License

GNU indent is the GNU Project's version of indent. A different indent style, the GNU style, is used by default.


External links

See also


fr:Indent zh:Indent (UNIX)

Personal tools

Served in 0.645 secs.