Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

The real reason why indentation In C matters

Name: Anonymous 2009-04-19 8:39

You won't find the error without splitting everything into small chunks.

Name: Anonymous 2010-03-03 9:47

>>10
#GNU style

Like the Allman and Whitesmiths styles, GNU style puts braces on a line by themselves, indented by 2 spaces, except when opening a function definition, where they are not indented[5]. In either case, the contained code is indented by 2 spaces from the braces.

Popularised by Richard Stallman, the layout may be influenced by his background of writing Lisp code. In Lisp the equivalent to a block (a progn) is a first class data entity and giving it its own indent level helps to emphasize that, whereas in C a block is just syntax. Although not directly related to indentation, GNU coding style also includes a space before the bracketed list of arguments to a function.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List