From owner-freebsd-questions@freebsd.org Sat Nov 23 13:42:50 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DCA251B6239 for ; Sat, 23 Nov 2019 13:42:50 +0000 (UTC) (envelope-from rizzo@rizzo.eng.br) Received: from server.i805.com.br (mailhost.i805.com.br [50.7.9.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "805 Inform????tica", Issuer "805 Inform????tica" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Kvcn6jbMz44v4 for ; Sat, 23 Nov 2019 13:42:48 +0000 (UTC) (envelope-from rizzo@rizzo.eng.br) Received: from [192.168.0.200] (badda294.virtua.com.br [186.221.162.148] (may be forged)) (authenticated bits=0) by server.i805.com.br (8.15.2/8.15.2) with ESMTPSA id xANDSOfh038471 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 23 Nov 2019 11:29:14 -0200 (-02) (envelope-from rizzo@rizzo.eng.br) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rizzo.eng.br; s=mailhost; t=1574515755; bh=dIYeiaiJhkM61FCyF19NFmeUU8PbyZJpnXtncNrhKyQ=; h=Subject:From:To:Date; b=EglwBvMcmpnx3BqH47QjZY4YUWCDniw9pVz7/KQaVDHhfN7o8OaUSTH4qNO0vbpQs 9zmxQbcO4g872pgTZfES3biWwkrSWS1Q4ORMDlhC7emab9kTsbfqyZORFFgmlRMHpJ hEEPWTYxjJ8hHiquEeX+xR6xtpIDopTWqoOfJAacjG+Vmu0tNgi1SuDpNLvKVQZ7yl EL07CttgoJm8qWhXwzTnKkPvzHQTwOU6NHmj/IhfbETbmsNWV5uxgPz8WXICuOSF4p VAB8cIHzoNZIahmxQcSkEvzJhUDcLbNo6jGuv14GP5F1H9QIUIToFb4jyschRp/OCr 07ZIFmFMOPqBQ== Message-ID: Subject: Where the best place to question about feature From: Nilton Jose Rizzo To: freebsd-questions@freebsd.org Date: Sat, 23 Nov 2019 10:41:31 -0300 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,HELO_MISC_IP,RDNS_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server.i805.com.br X-Rspamd-Queue-Id: 47Kvcn6jbMz44v4 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=rizzo.eng.br header.s=mailhost header.b=EglwBvMc; dmarc=none; spf=none (mx1.freebsd.org: domain of rizzo@rizzo.eng.br has no SPF policy when checking 50.7.9.75) smtp.mailfrom=rizzo@rizzo.eng.br X-Spamd-Result: default: False [-0.61 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[rizzo.eng.br:s=mailhost]; NEURAL_HAM_MEDIUM(-0.45)[-0.452,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.68)[-0.677,0]; DMARC_NA(0.00)[rizzo.eng.br]; DKIM_TRACE(0.00)[rizzo.eng.br:+]; IP_SCORE(0.32)[asn: 174(1.64), country: US(-0.05)]; R_SPF_NA(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[148.162.221.186.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:174, ipnet:50.7.8.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Nov 2019 13:42:50 -0000 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