delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=biIZ06l62s5VZT+u9dm83BrY7DbljNYlKkHwzGfEKyWwclogDIFHF | |
a5G/nLmx1LXUKMYmQO+FcVL+rQcuLqKCdAnETTRj2viaP6hYwXIwzHiI7DrfLxYr | |
uw2j2gAdo9Nhg1eGds5a8H+VVTBDHRRgJ+Ln33XgbVzwZJuRjhJxjE= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=wKllvUeU7v8l681g/+/AoAQClwQ=; b=T82XTs5KUdEd4CRloOxXHsPNSFiv | |
QRq8RG11LS6gqKBgO4eeQotClELngQgRSbl7vyw6K1kabzX63zFOS+ZRmcMBwfyW | |
cupPKvj2KSHmtooU+WSva/NkK0qr3W90+bUIoaGt1eYkL1/2IF3RhjxA8shJsj+i | |
VECXvksQg/Rx1gg= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-101.9 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*c:application |
X-HELO: | drew.franken.de |
Date: | Mon, 24 Jul 2017 11:21:36 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Cygwin strptime() is missing "%s" which strftime() has |
Message-ID: | <20170724092136.GA27514@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <BY1PR09MB0343663DE41D927E67CF0CCEA5BB0 AT BY1PR09MB0343 DOT namprd09 DOT prod DOT outlook DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <BY1PR09MB0343663DE41D927E67CF0CCEA5BB0@BY1PR09MB0343.namprd09.prod.outlook.com> |
User-Agent: | Mutt/1.8.3 (2017-05-23) |
--ikeVEW9yuYc//A+q Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jul 24 02:09, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: > > But that's just scanning a decimal integer to time_t. >=20 > It's not a question of whether I can or can't convert a string into an > integer, rather it's a question about portability of code that uses %s I see your point but... "portability" is kind of the wrong expression here. If you have portability in mind, you should *not* use %s at all. %s is a GNU extension and as such, is not portable by definition. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZdbwgAAoJEPU2Bp2uRE+gU58QAJSzDAybGSMn8f2tUPjji+g6 1UDmNR65fx991V2puWfEb9JRDAQjL0H62EMB9JwoPVOf37pdJ5jcsI9yW2obKlQ1 PPB1ZCYNlK1orCaTfgMng4hNR/LkFYfYb6dtY0cp080geB3DewacR2F3MzXcsG7x YFekZQrQqN/E+t60MrWeya/Xyb9JHKICm3aJBkCIsQNXzjPGPm9aoQcyGjfWoumk Zg526MsF7Wj3jLi3nhtGrZM9LUaSdHFMEG6o1GSWcxXfhQLb7D57918lyshUQbcM QUQf3MXeHyYME6F6zbhILHcBkv7hqreI2vdIZKsnvBV7IlGW0WFBH98trDQGIL79 CrxNWaWqfU16ajyvZ/voWnhvbTOwz4sx9Tw6qI7JjfinlIRTAeXDakv0Dy4X2z8t 0mjlDZNNZsVkCuqdY21WErDAwgLqW6keVkPpPeyZxIgHaJ7vAt6VI8IwTACGzPBP +t+Xw7Cmaayaq5IiWGBm1tf/PZQCFuL7HnDS0tIiCQdmsZTBlnP4CYD1zrfGZvgX LlJ33IyTPPeJfUf0y2CmN8KnMmnoXlusrDfiqlrUSJnWEWxz4LVI67HpeCY5bDk3 t23XWoEZAZ2doe0Oj6BWiHulq92XXg8u4bJOpwvbqpASf11/J67F0scrst/uXN1k Dms78UVrU08elTKmO/4k =RW+f -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |