Skip to content
Browse files

More K&R style.

Hmm, I can't seem to find my _first_ edition of The C Programming
Language.  The second is all modern.  What's the correct (!)
indentation?  And placement of return type of a function?
  • Loading branch information...
1 parent 8d7a3d8 commit 0525469511087b39399d32dbeb3e11b3872c253a @ln5 committed
Showing with 6 additions and 7 deletions.
  1. +6 −7 hello.c
View
13 hello.c
@@ -1,11 +1,10 @@
#include <stdio.h>
-int
-main (argc, argv)
- int argv;
- char* argv;
+int main(argc, argv)
+ int argv;
+ char* argv;
{
- printf ("hello, world\n");
- printf ("goodbye, dmr\n");
- return 0;
+ printf("hello, world\n");
+ printf("goodbye, dmr\n");
+ return 0;
}

0 comments on commit 0525469

Please sign in to comment.
Something went wrong with that request. Please try again.