From owner-freebsd-questions@freebsd.org Sat Nov 23 20:24:35 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 090211BE1BB for ; Sat, 23 Nov 2019 20:24:35 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47L4XL0JD0z4QZ1 for ; Sat, 23 Nov 2019 20:24:33 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([94.223.163.220]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPA (Nemesis) id 1MVNEv-1iRHoL32AB-00SRCv; Sat, 23 Nov 2019 21:23:54 +0100 Date: Sat, 23 Nov 2019 21:23:51 +0100 From: Polytropon To: Nilton Jose Rizzo Cc: freebsd-questions@freebsd.org Subject: Re: Where the best place to question about feature Message-Id: <20191123212351.8ae657af.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:JxbYQGCN1INGDctVUHsSObmyZMl9+xJT1gc0r9JdIirLftdv16f qlJF0oKMNQqKUt0bEws98fhCLyh4PaIjrw8HJwK2SbF9gdfCw6vEGPcR7oi6iAUICGx+63Z JezOW0wpkYoTtkUEETxKovT8AmFCS0lCzrBbIhlrOf+KLLUYPTXyQPS/EpAU5lx2HTX0aIG UYGtRtgzar5UauY2kEnaQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:2+uzOBoqdSs=:du3dKUcboyD65fcumCrLI4 1u2GpzpQK3f0nkkCKt5hc7tEGQYL97cR8+HaHmgjxz2x+cR0vp20rNY08M7cSNjCtUIIxEXUO t6lsiPg/ccKzSSnGCB7ot6TMbQ3I8tC8ISQk7tbz30nLkglSF0E57ms2sfVebvor8kMjxZNqv Lyfe6KOGPieVNs4z9tGktHXyt0bXERIlQ2Kw3Thi+72cjU4qJhNQ6eb8yZB3C6kquBVVkV9FC 212mKk2eHyjOb7iLV3QzC0OQvJ23cCpFlTph649CQ67LRvfxWQXr8v0i8yoxEHMo0YQMg/vpW k7Hu1c9JLQ9ey8kUhBqb1hUOSs4iQu3smgcF8ib0zloptaIKQX4JmEtl96fLTtl19QUEEhXkh 7HpuAES25LkCEhN1LURHIQxTxz64Dk/jNAFByBLL+js+A/mXqXINa2S4TeBafHfQDBe9TIy2B LZyRgdTI43ZzZgb7574T85hSGUEaCdsDncPquDrsxJ4pJkOIF7o0w4JglEyqafZe6sRPdRC1d /SsSRjDnnauNA7P2LElEaKGc8HWOY38n61UG8mfeyYDBjZxVw7wY12JAIqJ2s4UuPMR92kAFg f8R6hERSK/r1u6WJp9F9yoh67e77DiiaCK36AGoyjhyG2yqFLHqLPlYkVLwekbn5hpMZzlaqp 3EeHDZUF/Pd1yoY7RdZurvZxYBkyaKgzxN52lDWwNyCUweD+YnZlogV/9LuATqat6jkmK/O6r jLZVHGrJES+DnDUW3o8nnIqnA+8EDSf459P1MQl6qEI75PYgedAUM+klKORPJwZbF8lCxdlx5 2wfQHf+ujL0V3I0+jWBdbbQgOibb2q9Mpgzzl3pKqhPAoc6p2BzGfnvoraScgfC5cF1h6dSgP HCee+dNu9PMQEcFOTjmg== X-Rspamd-Queue-Id: 47L4XL0JD0z4QZ1 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.17.13) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [4.28 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[220.163.223.94.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.95)[0.947,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.85)[0.853,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[13.17.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.08)[ip: (-0.65), ipnet: 212.227.0.0/16(-1.25), asn: 8560(2.30), country: DE(-0.01)] 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 20:24:35 -0000 On Sat, 23 Nov 2019 10:41:31 -0300, Nilton Jose Rizzo wrote: > I'm have a quenstion about getopt_long functionality, where the best > place to send my question? The general questions mailing list (this one - freebsd-questions) is probably appropriate. In worst case, address the freebsd-hackers list. For more information see: https://lists.freebsd.org/mailman/listinfo > My questions is How I detect correct when the optional argument > was passed or not Without further investigation, I'd suggest to check the section EXAMPLES in "man 3 getopt_long". If I remember correctly, you define optional_argument for the flag and check if optarg is a valid string (or NULL)... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...