The programming language used is POSIX C99 and all code must be written in POSIX C99, no extensions are used. The coding style is as follows: GeneralThe code shall be as simple to understand as possible, add comments if necessary For indentation, the code shall use tab characters The code shall avoid using GNU-specific functions (as that would make the program less portable) Each line shall not exceed 79 characters Utilities shall only implement POSIX-compliant options, if the utility supports options, and the specified option is invalid, the utility shall print a help text (this applies only to coreutils) Utilities shall only use the *standard C library and POSIX libraries* For comments, instead of using For commenting code, use Variable names shall describe the variable's purpose The BlocksIn a block, do not use
When using
The block shall only use 1 line if there's only one instruction ran and that shall not exceed 79 characters
FunctionsThe function type shall be on the same line as the function name and
Function names shall describe the function's intended purpose When exiting, the function shall use
Variable declarations shall be at the top of the function
for (int i; i != 3; i++) printf(“%d\n”, i); SwitchIn
Preprocessor statementsThe
Preprocessor statements shall not be indented |