本文介绍了C编程风格指南的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我写过C以来,我已经有一段时间了,我从来没有做过任何格式化,因为它是所有的玩具工作和无关紧要。对于开源C项目,最好的(是最同意和利用的)风格指南(格式化和约定明智)遵循?

It has been a while since I've written C, and I never really did any formatting when I did it since it was all toy work and inconsequential. For open source C projects, what would be the best (being the most agreed upon and utilized) style guide (Formatting and convention wise) to follow?

推荐答案

列出了许多样式指南。我想你应该选择一个在你的OS项目中使用的区域。
I.g. GNU人喜欢其他格式比linux内核开发人员。

C and C++ Style Guides lists many style guides. I think you should use choose one that is used in the area of your OS project.I.g. GNU people like other formatting than linux kernel developers.

只是例子:




  • GNU Style Guide
  • Linux Kernel

这篇关于C编程风格指南的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 17:22