How to write a good C main function
In this article, I'll explain how to structure a C file and write a C main function that handles command line arguments like a champ.
How to write a good C main function an article by Erik O'Shaughnessy.
In this article, I'll explain how to structure a C file and write a C main function that handles command line arguments like a champ.
How to write a good C main function an article by Erik O'Shaughnessy.
The following command makes several directories and changes into the last one created:
mkdir -p ~/foo/bar/baz && cd $_
In this example the current working directory is baz
.
mkdir -p ~/foo/{baz,qux} && cd $_
And in this example the current working directory is qux
.
In both cases you can verify the path of the current working directory
with the pwd
command.