Wikipedia

indent (Unix)

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 (2008-03-11)
Written inC
Operating systemCross-platform
Typesource-code-reformat tool
LicenseGNU GPL v3
Websitewww.gnu.org/software/indent/

indent is a Unix utility that reformats C and C++ code in a user-defined indentation style and coding style. Support for C++ code is minimal.[1]

The original version of indent was written by David Willcox at the University of Illinois in November 1976. It was incorporated into 4.1BSD in October 1982.[2] GNU indent was first written by Jim Kingdon in 1989.

Examples of usage

The following command

$ indent -st -bap -bli0 -i4 -l79 -ncs -npcs -npsl -fca -lc79 -fc1 -ts4 some_file.c 

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

GNU indent

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

GUI

  • UniversalIndentGUI

References

  1. ^ "indent: Indent and Format C Program Source". www.gnu.org. Retrieved 2019-08-16.
  2. ^ Dickey, Thomas (2017). "CINDENT - C-language formatter". Invisible Island. Retrieved 2019-04-22.
  3. ^ GNU Indent Manual

External links


This article is copied from an article on Wikipedia® - the free encyclopedia created and edited by its online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of Wikipedia® encyclopedia articles provide accurate and timely information, please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.

Copyright © 2003-2025 Farlex, Inc Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.