Hello, All!
Recently this book has fallen into my hands and I was reviewing the chapter dedicated to development of Command Line Interface for generic embedded system.
I was confused, the author offers unusual method: there is main function getting command line from user and parsing it, than calls appropriate function (for example, which shows env. variables: show_env()) and pass 'argc' and 'argv[]' to that function (assuming that in CLI prompt you enter some arguments, like 'show env current').
How is it possible to work?
With best regards, Roman Mashak. E-mail: snipped-for-privacy@tusur.ru