Try this way...
Regards
KT
#include<stdio.h>
int main ()
{
char *name[3] = {"ligal month",
"jan",
"fed" };
int i;
for(i=0;i<3;i++)
printf( "%s\n" , *(name+i));
return 0;
}
On 16/07/07, 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
>
>
> [Non-text portions of this message have been removed]
>
>