How to write a good C main function

3 years ago by akrz to c/c_lang

Learn how to structure a C file and write a C main function that handles command line arguments like a champ.
t0mri 2 points 3 years ago
path: 0 9081278, hotness: undefined, score: 2, children: 0
c_lang
c_lang

@programming.dev

login for more options
1359
104
35

Welcome to the C community!

C is quirky, flawed, and an enormous success.
... When I read commentary about suggestions for where C should go, I often think back and give thanks that it wasn't developed under the advice of a worldwide crowd.
... The only way to learn a new programming language is by writing programs in it.

Ā© Dennis Ritchie

🌐 https://en.cppreference.com/w/c

go to feed...