From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127640 invoked by alias); 24 Jul 2017 09:21:45 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 127622 invoked by uid 89); 24 Jul 2017 09:21:42 -0000 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 Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Jul 2017 09:21:40 +0000 Received: from aqua.hirmke.de (aquarius.franken.de [193.175.24.89]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id 5A88D721E281E for ; Mon, 24 Jul 2017 11:21:37 +0200 (CEST) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id A0BD25E0359 for ; Mon, 24 Jul 2017 11:21:36 +0200 (CEST) Received: by calimero.vinschen.de (Postfix, from userid 500) id 859AEA80448; Mon, 24 Jul 2017 11:21:36 +0200 (CEST) Date: Mon, 24 Jul 2017 10:53:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Cygwin strptime() is missing "%s" which strftime() has Message-ID: <20170724092136.GA27514@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-SW-Source: 2017-07/txt/msg00319.txt.bz2 --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 636 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" Content-length: 819 -----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--