Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    command similar to "cb" or "indent" for C

    i have never tried cb but im reading the book "Expert C Programming: Deep C Secrets" (it has a fish on the cover lol) and i saw a program that came with an old compiler. it apparently tidys up your C code for you. i would love to have a program like this, anyone know of any modern ones?

  2. #2
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Saint Paul, MN, USA / CentOS, Debian, Slackware, {Free, Open, Net}BSD, Solaris

    Many distributions (still) provide indent. Other choices are:
    astyle - Source code indenter for C++/C/Java/C# source code
    bcpp - C(++) beautifier
    uncrustify - C, C++, C#, D, Java and Pawn source code beautifier
    Search for more using keywords indent, pretty, tidy, format, beautify using Google (browser), man -k <keyword> (on your local system), etc.

    See also

    Best wishes ... cheers, drl
    Last edited by drl; 09-06-2013 at 10:22 AM.
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts