TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
ASML C Coding Standard
Search

Category: Library

Synopsis:Rules about the C libraries


Description:

Coding Rules

NameCheckedSynopsis
7.2.a Checked automatically with code checker The standard header file assert.h shall not be used.
7.12.a Checked automatically with code checker The arguments to any mathematical function shall be within the appropriate range.
7.12.b Any calculation result shall not overflow the corresponding output parameter or return value data type.
7.13.a Checked automatically with code checker The setjmp() function and its counterpart longjmp() shall not be used.
7.18.a Checked automatically with code checker Do not define types or macros with the same name as types or macros in stdint.h.
7.19.a Checked automatically with code checker Only standard output specifiers and standard flags shall be used in output format specifications.
7.19.b Checked automatically with code checker The arguments in a formatted output function shall match the output specifiers in the format specification.
7.19.c Checked automatically with code checker Only standard input specifiers and standard flags shall be used in input format specifications.
7.19.d Checked automatically with code checker The arguments in a formatted input function shall match the input specifiers in the format specification.
7.19.e The number of arguments to printf formats should correspond to the actual arguments.
7.19.f Checked automatically with code checker Do not access members of type FILE directly.
7.19.g Checked automatically with code checker Do not use the same buffer for reading and writing when calling input/output functions.
7.21.a Checked automatically with code checker Don't use the functions strerror and strtok, instead use their re-entrant counterparts strerror_r and strtok_r.
7.23.a Checked automatically with code checker Don't use the functions asctime, ctime and gmtime instead use their re-entrant counterparts asctime_r, ctime_r and gmtime_r.
7.26.1.a Checked automatically with code checker Don't use the functions readdir instead use the re-entrant counterpart readdir_r
7.26.2.a Checked automatically with code checker Don't use the functions rand. Instead use the re-entrant counterpart rand_r.