The One True Brace Style, the correct way to indent C code. For example:

if(foo()){
    bar();
}else{
    baz();
}

Also known as K&R style. Other inferior indent styles include Allman, the (nasty) Whitesmiths, and the (very nasty) GNU style.

-0- = 0 = 120 reset

1TBS // n.

The "One True Brace Style"; see indent style.

--The Jargon File version 4.3.1, ed. ESR, autonoded by rescdsk.

Besides being used by real programmers, it is the brace style of Linux kernel coding style. It is also the brace style of KNF (BSD kernel normal form), used for the BSD kernels and most of BSD-specific userland.

Log in or register to write something here or to contact authors.