Make eBroadcast my Homepage | Contact Us   Return To The Main eBroadcast Homepage
Australia
Web Guide Search
Australia
Welcome It's
Australia
Australia
Web Guide: Encyclopedia
EBroadcast Australia
Powered by Wikipedia

<<Up     Contents

One True Brace Style

Redirected from 1TBS One True Brace Style is a style in writing computer programs in the C programming language, and its derivatives, like C++. Also known as K&R style, named after Kernighan and Ritchie, because the examples in their seminal book are formatted this way. Also called "kernel style" because the Unix kernel[?] is written in it. "One True Brace Style" (abbreviation 1TBS) is the name it was given by its partisans. The basic indent shown here is eight spaces (or one tab) per level; four spaces are occasionally seen, but are much less common.

For example

 if (cond) {
         <body>
 }

See also:

This article (or an earlier version of it) contains material from FOLDOC, used with permission. Update as needed.

Elsewhere
EBroadcast Australia
Search engine
Web directory

CONTENTS:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z

Australia
eBroadcast Australia
Australia © 06 eBroadcast Australia | About eBroadcast | Legal Notices | Privacy Policy | Contact Us    Return To The Main eBroadcast Homepage