c_language:c_style
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| c_language:c_style [2021/02/19 15:22] – utedass | c_language:c_style [2022/09/12 00:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| [[https:// | [[https:// | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | [[https:// | ||
| + | ====== Things to consider ====== | ||
| ==== Naming ==== | ==== Naming ==== | ||
| Line 63: | Line 78: | ||
| strlen( str ) | strlen( str ) | ||
| </ | </ | ||
| + | |||
| + | ==== Whitespaces in declarations ==== | ||
| + | |||
| + | <code c> | ||
| + | uint32_t *my_func(); | ||
| + | uint32_t* my_func(); | ||
| + | uint32_t * my_func(); | ||
| + | |||
| + | uint32_t *my_var; | ||
| + | uint32_t* my_var; | ||
| + | uint32_t * my_var; | ||
| + | uint32_t *my_var, *another_var, | ||
| + | |||
| + | void a_function_with_a_really_long_name_and_argument_list(int that, int makes, int you, int wonder, int where | ||
| + | int and_how, int to, int break_the, int lines); | ||
| + | </ | ||
| + | |||
| + | ==== Program flow ==== | ||
| + | |||
| + | * Should functions only have one return statement? How/ | ||
| + | |||
| + | |||
c_language/c_style.1613748147.txt.gz · Last modified: 2022/09/12 00:30 (external edit)
