编程风格指南对于C [英] programming style guide for C

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

问题描述

这已经有一段时间,因为我已经写了C,我从来没有真的任何格式的时候,我做到了,因为这是所有玩具的工作和无关紧要的。对于开源的C项目,这将是最好的(是最商定和利用)风格指南(格式和约定WISE)跟随?

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?

推荐答案

C和C ++风格指南列出了许多风格指南。我认为你应该使用选择一个在您的OS项目的区域使用。
胃内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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆