From owner-sc22wg5+sc22wg5-dom9=www.open-std.org@open-std.org  Sat Jan 23 13:20:13 2021
Return-Path: <owner-sc22wg5+sc22wg5-dom9=www.open-std.org@open-std.org>
X-Original-To: sc22wg5-dom9
Delivered-To: sc22wg5-dom9@www.open-std.org
Received: by www.open-std.org (Postfix, from userid 521)
	id CEBB8358AD1; Sat, 23 Jan 2021 13:20:13 +0100 (CET)
Delivered-To: sc22wg5@open-std.org
X-Greylist: delayed 335 seconds by postgrey-1.34 at www5.open-std.org; Sat, 23 Jan 2021 13:20:13 CET
Received: from postout1.mail.lrz.de (postout1.mail.lrz.de [129.187.255.137])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by www.open-std.org (Postfix) with ESMTP id 89A7D35891B
	for <sc22wg5@open-std.org>; Sat, 23 Jan 2021 13:20:13 +0100 (CET)
Received: from lxmhs51.srv.lrz.de (localhost [127.0.0.1])
	by postout1.mail.lrz.de (Postfix) with ESMTP id 4DNFRx38KQzylJ
	for <sc22wg5@open-std.org>; Sat, 23 Jan 2021 13:14:37 +0100 (CET)
Authentication-Results: postout.lrz.de (amavisd-new); dkim=pass (2048-bit key)
	reason="pass (just generated, assumed good)" header.d=lrz.de
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lrz.de; h=
	mime-version:content-type:content-type:content-language
	:accept-language:message-id:date:date:subject:subject:from:from
	:received:received:received:received; s=postout; t=1611404077;
	 bh=Vzol6mEMGTgw2JVQFgIXPdfKZOqmuLN8dDBE1M+J/a4=; b=rg8ZDvIIFzsr
	hs02+cdp3bb5fexGpONn9reyTc4RNWqwosQHablM67Vg0q3LWLdvtuODMnH2kbcV
	srbEgKhHYJbrWKbCy10xSAoC/dpvx23OFR4KVE0P/ZNFeuQu2fkup2pSORwpTRKO
	NxlP80S7Z1nX5ptpjjWEqqSioHYadKoa87YyDOL75Wf4i6NGvzyeuZE9NFqdQT7E
	ow+gl0UX9tQLf4vlm1n5YledMfHIovXgPyDaJSFsO9hg+mliT0np5IwkBLhHbTdN
	MTTYo75GhK42TiGYGZSKF3J6BYtrHJelXn+IVpCGHlPsRRs9oO8C2KHrpJW1Xqnw
	B2ymMA4B+w==
X-Virus-Scanned: by amavisd-new at lrz.de in lxmhs51.srv.lrz.de
X-Spam-Flag: NO
X-Spam-Score: -0.575
X-Spam-Level:
X-Spam-Status: No, score=-0.575 tagged_above=-999 required=5
	tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, DMARC_ADKIM_RELAXED=0.001,
	DMARC_ASPF_RELAXED=0.001, DMARC_POLICY_NONE=0.001, HTML_MESSAGE=0.001,
	LRZ_DATE_TZ_0000=0.001, LRZ_DKIM_DESTROY_MTA=0.001,
	LRZ_DMARC_FAIL=0.001, LRZ_DMARC_LRZ_FAIL=0.001,
	LRZ_DMARC_OVERWRITE=0.001, LRZ_DMARC_POLICY=0.001,
	LRZ_ENVFROM_FROM_ALIGNED_STRICT=0.001, LRZ_ENVFROM_FROM_MATCH=0.001,
	LRZ_ENVFROM_LRZ_S=0.001, LRZ_FROM_AP_PHRASE=0.001,
	LRZ_FROM_HAS_A=0.001, LRZ_FROM_HAS_MDOM=0.001, LRZ_FROM_HAS_MX=0.001,
	LRZ_FROM_HOSTED_DOMAIN=0.001, LRZ_FROM_LRZ_S=0.001,
	LRZ_FROM_NAME_IN_ADDR=0.001, LRZ_FROM_PHRASE=0.001,
	LRZ_FROM_PRE_SUR_ADDR=0.001, LRZ_FWD_MS_EX=0.001, LRZ_HAS_BND=0.001,
	LRZ_HAS_CLANG=0.001, LRZ_HAS_SPF=0.001, LRZ_HAS_THREAD_INDEX=0.001,
	LRZ_HAS_X_ORIG_IP=0.001, LRZ_MSGID_HL32=0.001,
	LRZ_RCVD_BADWLRZ_EXCH=0.001, LRZ_RCVD_MS_EX=0.001, LRZ_RDNS_NONE=1.5,
	RDNS_NONE=0.793, SPF_HELO_NONE=0.001] autolearn=no autolearn_force=no
Received: from postout1.mail.lrz.de ([127.0.0.1])
	by lxmhs51.srv.lrz.de (lxmhs51.srv.lrz.de [127.0.0.1]) (amavisd-new, port 20024)
	with LMTP id nyNimKSeoxgU for <sc22wg5@open-std.org>;
	Sat, 23 Jan 2021 13:14:37 +0100 (CET)
Received: from BADWLRZ-SWMBX03.ads.mwn.de (BADWLRZ-SWMBX03.ads.mwn.de [IPv6:2001:4ca0:0:108::159])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits))
	(Client CN "BADWLRZ-SWMBX03", Issuer "BADWLRZ-SWMBX03" (not verified))
	by postout1.mail.lrz.de (Postfix) with ESMTPS id 4DNFRx18Qmzykb
	for <sc22wg5@open-std.org>; Sat, 23 Jan 2021 13:14:37 +0100 (CET)
Received: from BADWLRZ-SWMBX05.ads.mwn.de (2001:4ca0:0:108::161) by
 BADWLRZ-SWMBX03.ads.mwn.de (2001:4ca0:0:108::159) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id
 15.1.2176.2; Sat, 23 Jan 2021 13:14:11 +0100
Received: from BADWLRZ-SWMBX05.ads.mwn.de ([fe80::4095:4fb3:50be:d2bd]) by
 BADWLRZ-SWMBX05.ads.mwn.de ([fe80::4095:4fb3:50be:d2bd%12]) with mapi id
 15.01.2176.002; Sat, 23 Jan 2021 13:14:10 +0100
From: "Bader, Reinhold" <Reinhold.Bader@lrz.de>
To: WG5 <sc22wg5@open-std.org>
Subject: Questions on F_C_STRING
Thread-Topic: Questions on F_C_STRING
Thread-Index: AdbxgFupePLGi+3lT+2rqxa+euddPQ==
Date: Sat, 23 Jan 2021 12:14:10 +0000
Message-ID: <b1a97b5e38084903982f9e51896de812@lrz.de>
Accept-Language: de-DE, en-US
Content-Language: de-DE
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 04
X-MS-Exchange-Organization-AuthSource: BADWLRZ-SWMBX05.ads.mwn.de
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [2001:4ca0:0:300::73]
Content-Type: multipart/alternative;
	boundary="_000_b1a97b5e38084903982f9e51896de812lrzde_"
MIME-Version: 1.0
Sender: owner-sc22wg5@open-std.org
Precedence: bulk

--_000_b1a97b5e38084903982f9e51896de812lrzde_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Dear all,

F_C_STRING is a new ISO_C_BINDING module procedure in F2x that, after some =
inspection, seems to be of doubtful value, and
the current specification also has an issue.

First, does it really simply do what can also be (more clearly, to my mind)=
 written as

X // C_NULL_CHAR

or

TRIM(X) // C_NULL_CHAR

or am I missing something here?

Second, it is unclear what happens if C_CHAR has the value -1. One could co=
nceivably fall back to default character here, or some
words (similar as for C_F_STRPOINTER) need to be added to delete the functi=
on in that case.

Regards
Reinhold

--_000_b1a97b5e38084903982f9e51896de812lrzde_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
span.E-MailFormatvorlage17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"DE" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Dear all, <o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">F_C_STRING is a new ISO_C_BINDI=
NG module procedure in F2x that, after some inspection, seems to be of doub=
tful value, and<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">the current specification also =
has an issue.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">First, does it really simply do=
 what can also be (more clearly, to my mind) written as<o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">X // C_NULL_CHAR<o:p></o:p></sp=
an></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">or <o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">TRIM(X) // C_NULL_CHAR <o:p></o=
:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">or am I missing something here?=
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Second, it is unclear what happ=
ens if C_CHAR has the value -1. One could conceivably fall back to default =
character here, or some
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">words (similar as for C_F_STRPO=
INTER) need to be added to delete the function in that case.<o:p></o:p></sp=
an></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Regards<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Reinhold<o:p></o:p></span></p>
</div>
</body>
</html>

--_000_b1a97b5e38084903982f9e51896de812lrzde_--
