Re: CLIL source code from book "Firmware demystified"
- From: "Roman Mashak" <mrv@xxxxxxxx>
- Date: Thu, 30 Jun 2005 09:46:28 +0900
Hello, Everett!
You wrote on Wed, 29 Jun 2005 10:16:16 PST:
??>> Main function gets command line (comman and its arguments) from user
??>> and than pass it to appropriate function handling all functionality. I
??>> don't understand why is 'argc' and 'argv[]' is passed, because I used
??>> to think 'argc' and 'argv[]' are valid only with a program running,
??>> not function.
EMG> You certainly can pass argc and argv to another function.
EMG> One of my standard programming techniques is to have a
EMG> function such as:
EMG> int valid_options(int argc, char *argv[], )
I don't quite understand WHY I can pass 'argc' and 'argv' to another
function? The reason I ask this is every command I type in command line is
not a seperate process, it's run in the whoel scope (according to the book I
mentioned before). And originally 'argc' and 'argv' are valid for
single-running processes, not as a part of any code.
Still confused...
With best regards, Roman Mashak. E-mail: mrv@xxxxxxxx
.
- Follow-Ups:
- Re: CLIL source code from book "Firmware demystified"
- From: Jet Morgan
- Re: CLIL source code from book "Firmware demystified"
- From: Hans-Bernhard Broeker
- Re: CLIL source code from book "Firmware demystified"
- References:
- CLIL source code from book "Firmware demystified"
- From: Roman Mashak
- Re: CLIL source code from book "Firmware demystified"
- From: Lanarcam
- Re: CLIL source code from book "Firmware demystified"
- From: Roman Mashak
- Re: CLIL source code from book "Firmware demystified"
- From: Everett M. Greene
- CLIL source code from book "Firmware demystified"
- Prev by Date: PC104 to Membrane Keypad Module
- Next by Date: Re: Startup code
- Previous by thread: Re: CLIL source code from book "Firmware demystified"
- Next by thread: Re: CLIL source code from book "Firmware demystified"
- Index(es):
Relevant Pages
|