Re: CLIL source code from book "Firmware demystified"





Roman Mashak wrote:
> 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?

What exactly do you not understand?
- main function getting command line from user?
- parsing it?
- calls appropriate function?
- pass 'argc' and 'argv[]'?

> With best regards, Roman Mashak. E-mail: mrv@xxxxxxxx

.



Relevant Pages

  • Re: CLIL source code from book "Firmware demystified"
    ... ??>> parsing it, than calls appropriate function (for example, which shows ... ??>> 'show env current'). ... L> - main function getting command line from user? ... 'argc' and 'argv' are valid only with a program running, ...
    (comp.arch.embedded)
  • Re: CLIL source code from book "Firmware demystified"
    ... > ??>> parsing it, than calls appropriate function (for example, which shows ... > ??>> function (assuming that in CLI prompt you enter some arguments, ... > L> - main function getting command line from user? ... > With best regards, Roman Mashak. ...
    (comp.arch.embedded)
  • Re: simple CLI architecture
    ... > design based on linux. ... > features (like command line editing, commands history etc.) by now, just ... > With best regards, Roman Mashak. ... Use a predefined CLI ...
    (comp.arch.embedded)