From owner-freebsd-questions@freebsd.org Sun Oct 15 19:35:07 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3BEBDE49795 for ; Sun, 15 Oct 2017 19:35:07 +0000 (UTC) (envelope-from jkeenan@pobox.com) Received: from sasl.smtp.pobox.com (pb-smtp2.pobox.com [64.147.108.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 12C8F842B8 for ; Sun, 15 Oct 2017 19:35:06 +0000 (UTC) (envelope-from jkeenan@pobox.com) Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id D031F9B0E8 for ; Sun, 15 Oct 2017 15:32:15 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=to:from :subject:message-id:date:mime-version:content-type :content-transfer-encoding; s=sasl; bh=650TxpL/I11wi8Vol51ltXHXQ H4=; b=Fpo2Ob/yDPlPbDmJWaBs2yHe8e66QfUnKWGRIgcrwPkI/alZAdjC0o+dI fpgecszJN4oTNYz0x7dow8T0eVsF6t4aA5GjqG1tJhlnlHyZImvjADdANotEcSnB giEBR3kpDPB+Xn+DZIX7NuFzJv+IKNL+qdZ1GmGyw9I+nQt/TM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=to:from:subject :message-id:date:mime-version:content-type :content-transfer-encoding; q=dns; s=sasl; b=GOimCG8l44M1/PDe1vM aoDHYlcAKD6FlyGCHPcHnSh8skBWfMIZFLs9O9BMBRlfRMNPWY57giQbd1GHto5n 0uam0XFnfe8eEwyvngLfWb45+O4UuGzYbSHZ5hzGuRdhiE/0FMmBRj83LxsQC517 FJpboA57kdKQc4aYdJLQZ7sI= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id C6B169B0E7 for ; Sun, 15 Oct 2017 15:32:15 -0400 (EDT) Received: from [10.10.10.120] (unknown [145.131.171.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 2EC709B0E5 for ; Sun, 15 Oct 2017 15:32:15 -0400 (EDT) To: freebsd-questions@freebsd.org From: James E Keenan Subject: Need example of localeconv and localeconv_l Message-ID: <6432375e-2a10-4eb7-eb85-609ee11e3497@pobox.com> Date: Sun, 15 Oct 2017 21:32:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Pobox-Relay-ID: 8C9F5004-B1DF-11E7-A9D4-575F0C78B957-57062903!pb-smtp2.pobox.com X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Oct 2017 19:35:07 -0000 For heuristic purposes I need to locate a *short* C program which exercises the localeconv and localeconv_l functions described in man 3 localeconv. I'm looking for something which will print a simple statement to STDOUT if and when each of these functions is present. I'll be running it on FreeBSD to demonstrate the presence of both on that OS. Then I'll run it on Linux to demonstrate the absence of localeconv_l therein. I've conducted DDG search and found many pages with the man page, but I'm looking for a beginner-level C program as an example and haven't found one. Any link or example would be greatly appreciated. Thank you very much. Jim Keenan