-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Betty style usage
Alexandre Gautier edited this page Oct 12, 2016
·
2 revisions
To check your C source files or C header files coding style, you can run betty-style
script as follows:
./betty-style.pl file1 [file 2 [file3 [...]]]
Examples:
./betty-style.pl main.c
./betty-style.pl main.c crack_passwd.c utils.h
./betty-style.pl src/*.c include/*.h
You can see all available options for betty-style
by running the script as follows:
./betty-style.pl --help
0.1 - Betty-style usage
0.2 - Betty-doc usage
0.3 - References
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.1 - Functions
2.2 - Data structures
3.1 - Emacs
3.2 - Vim
3.3 - Atom