hello,
i'm using getopt_long() to parse the command line arguments and i'm
experiencing some weird behaviour:
first, i'm using the function strtol() within a case statement to
retrieve an option argument as a long int. when i'm using getopt_long,
then strtol() crashes the app, using getopt() works fine.
for a long option, i chose 'optional_argument', but when i give it an
argument, optarg is always null.
are these known problems or am i doing something wrong?
thanks for any help!
gernot
--
,----------------------------------------------------------------------.
| vereinsgasse 32/12 | fax: +43 1 2160493 |
| a-1020 wien | http://members.EUnet.at/gernot.kerschbaumer |
`----------------------------------------------------------------------'