Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Nov 2019 10:41:31 -0300
From:      Nilton Jose Rizzo <rizzo@rizzo.eng.br>
To:        freebsd-questions@freebsd.org
Subject:   Where the best place to question about feature
Message-ID:  <f59c14ce58459344024d4169b998c4ac1f90ebd2.camel@rizzo.eng.br>

next in thread | raw e-mail | index | archive | help

Hi all

I'm have a quenstion about getopt_long functionality, where the best
place to send my question?


I'm trying use a getopt_long and get a fuzzy operation with 
an optional argument.

Look at git@gitlab.com:ufrrj/disciplinas/IC501.git
the source code are in src/C++  or src/C directory
getopt_long.{c,cpp}

when I run with this command line:

% clang getopt_long.c -o getopt_long
% ./getopt_long 
Retorno: 1 :
% ./getopt_long -h
Retorno: 0 :
% ./getopt_long -h d
Help: d :
Retorno: 1 :
% ./getopt_long --help
Segmentation fault (core dumped)
% ./getopt_long --help=
Help:   :
Retorno: 1 :
% 

My questions is How I detect correct when the optional argument
was passed or not


TIA



-- 
Nilton José Rizzo





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f59c14ce58459344024d4169b998c4ac1f90ebd2.camel>