使用indent来格式化C代码:
indent -npro -kr -i4 -ts4 -sob -bl -bli 0 main.c
[linux indent格式化代码] http://dongyulong.blog.51cto.com/1451604/338633