On Thu, 2008-10-16 at 00:10 +0200, Fons Adriaensen
wrote:
2. lash_extract_args()
The type of main()'s argv is char *argv[], so
why is the second argument a triple pointer ?
Re-arranging the elements of argv does not
require access to the variable argv itself,
only to its elements, and for this a double
pointer is all you need.
I think the better option would have been to use environment variables
rather than command-line arguments. That would have required no
fiddling at all. As for why a double pointer was used, it was likely
because I was following the method used in GTK+ et al.
I also think that LASH should use environment and remove use of
arguments for LASH business competely.
--
Nedko Arnaudov <GnuPG KeyID: DE1716B0>