Reformat a C golf submission
Take this C golf submission (for the "tiny but standards-compliant Hello World program" category, naturally), and turn it into formatted C code.
Start file
#include<stdio.h> int main(void){puts("Hello world!");return 0;}
End file
#include <stdio.h> int main(void) { puts("Hello world!"); return 0; }
View Diff
--- hw.c 2010-12-28 21:01:54.000000000 -0800 +++ hw-indented.c 2010-12-28 21:04:56.000000000 -0800 @@ -1,2 +1,7 @@ -#include<stdio.h> -int main(void){puts("Hello world!");return 0;} +#include <stdio.h> + +int main(void) +{ + puts("Hello world!"); + return 0; +}
Solutions by @frandibar:
Unlock 2 remaining solutions by signing in and submitting your own entry