> 
> I need to pass some parameters to a C prorgam, but in the form 
>       <program_name> -i <input_file> -o <output_file> .....
> 
> There is another way than inspecting the String[] that comes 
> as parameter in main ?????
> If it is, please let me know, because i think it's better 
> than my solution!! ;-))
> 
Hi Javier,

try:

        man 3 getopt

I also I believe the popt library is an alternate way of doing this:

        man 3 popt

On the other hand if you are asking about this, probably writing your
own code to parse char **argv is a good excercise.

Cheers...james



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to