Skip to content
Alexandre Gautier edited this page Aug 26, 2016 · 20 revisions

#Welcome to the Betty wiki!

Introduction

This document describes the C coding style for Holberton School.
Coding style is very personal, and we won't force our views on anybody.
But we expect you to follow this coding style for all the projects related to Holberton School. The Holberton School coding style is mainly inspired from the Linux Kernel coding style, but it's slightly modified.
To avoid any confusion, please refer to this guide and not the official Linux Kernel coding style.

Summary

  1. Indentation

  2. Breaking long lines and strings

  3. Placing Braces and Spaces

    3.1. Spaces

  4. Naming

  5. Functions

  6. Commenting

References

[Linux Kernel coding style] (http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/plain/Documentation/CodingStyle)
See the section References of the Linux Kernel coding style for more sources.

0. Betty cli

0.1 - Betty-style usage

0.2 - Betty-doc usage

0.3 - References

1. Coding style

1.1 - Indentation

1.2 - Breaking long lines and strings

1.3 - Placing Braces

1.4 - Placing Spaces

1.5 - Naming

1.6 - Functions

1.7 - Commenting

1.8 - Macros and Enums

1.9 - Header files

2. Documentation

2.1 - Functions

2.2 - Data structures

3. Tools

3.1 - Emacs

3.2 - Vim

3.3 - Atom

Clone this wiki locally