Practici comune pentru programarea în C

Sfetcu, Nicolae Practici comune pentru programarea în C. IT & C, 2023, vol. 2, n. 1, pp. 30-36. [Journal article (Paginated)]

[thumbnail of IT&C-2-1-Programare-Practici_comune_pentru_programarea_in_C-Nicolae_Sfetcu.pdf]
Preview
Text
IT&C-2-1-Programare-Practici_comune_pentru_programarea_in_C-Nicolae_Sfetcu.pdf - Published version
Available under License Creative Commons Attribution.

Download (341kB) | Preview
Alternative locations: https://doi.org/10.58679/IT80750

English abstract

With widespread use, a number of common practices and conventions have evolved to help avoid errors in C programming. These are both a demonstration of applying good software engineering principles to a language, and an indication of C’s limitations. Although few are universally used and some are controversial, each enjoys wide use.

Romanian abstract

Odată cu utilizarea pe scară largă, o serie de practici și convenții comune au evoluat pentru a ajuta la evitarea erorilor în programele C. Acestea sunt simultan o demonstrație a aplicării bunelor principii de inginerie software într-un limbaj, și o indicație a limitărilor C. Deși puține sunt utilizate universal, iar unele sunt controversate, fiecare dintre acestea se bucură de o utilizare largă.

Item type: Journal article (Paginated)
Keywords: programarea în C, programe C, software, limbaj de programare, inginerie software
Subjects: L. Information technology and library technology > LJ. Software.
Depositing user: Nicolae Sfetcu
Date deposited: 26 Jan 2024 06:58
Last modified: 26 Jan 2024 06:58
URI: http://hdl.handle.net/10760/45508

References

Adam N. Rosenberg. [http://www.the-adam.com/adam/rantrave/st02.pdf “A Description of One Programmer’s Programming Style Revisited”]. 2001. p. 19-20.

comp.lang.c FAQ list: “Why isn’t a pointer null after calling free?” mentions that “it is often useful to set [pointer variables] to NULL immediately after freeing them”.

“comp.lang.c FAQ: What’s the best way to write a multi-statement macro?”.

“The C Preprocessor: Swallowing the Semicolon”

“Why use apparently meaningless do-while and if-else statements in macros?”

“do {…} while (0) in macros”

“KernelNewbies: FAQ / DoWhile0”.

“PRE10-C. Wrap multistatement macros in a do-while loop”.

“What is the history for naming constants in all uppercase?”

“The Preprocessor”.

“C Language Style Guide”.

“non capitalized macros are always evil”.

“Exploiting the Preprocessor for Fun and Profit”.


Downloads

Downloads per month over past year

Actions (login required)

View Item View Item