--- In [email protected], "Ahmed Shabana" <[EMAIL PROTECTED]> wrote:
>
> okay this is really a misunderstand , I did not mean by bash
> the bash programming I mean the bash source code which is
> writen in C and I saw this exactly code in it "the source
> code of find" reduced version:
> 
> [code]
> while ( --argc > 0 && (*++argv)[0] == '-'  )
>       /*to go through arguments*/
>   while (c = *++argv[0])
>       /*to go through strings of the agrs*/
>     switch (c) {
> ...
> [/code]
> 
> NOTE : the source of this code is the Denis Ritchie book the
> C programming language second edition and I only tried to
> print this part of code to  watch it's behaviour myself

Hi Ahmed,

I see the point. The misunderstanding that you suffer from is that
"argv" is a _pointer_ to an array whereas in your previous sample code
 "name" is an _array_. This is a big difference here. Do you see what
I mean?

Regards,
Nico

Reply via email to