Authentication-Results: mail-b.sr.ht; dkim=none Received: from host39.dwhost.net (host39.dwhost.net [188.40.21.44]) by mail-b.sr.ht (Postfix) with ESMTPS id 92A7611EF97 for <~skeeto/public-inbox@lists.sr.ht>; Mon, 3 Jan 2022 21:54:05 +0000 (UTC) Received: from [::1] (port=46906 helo=host39.dwhost.net) by host39.dwhost.net with esmtpa (Exim 4.94.2) (envelope-from ) id 1n4VHH-0009De-W7 for ~skeeto/public-inbox@lists.sr.ht; Mon, 03 Jan 2022 22:54:04 +0100 MIME-Version: 1.0 Date: Mon, 03 Jan 2022 22:54:01 +0100 From: dbj@dbj.org To: ~skeeto/public-inbox@lists.sr.ht Subject: strcpy: a niche function you don't need User-Agent: Roundcube Webmail/1.4.12 Message-ID: X-Sender: dbj@dbj.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host39.dwhost.net X-AntiAbuse: Original Domain - lists.sr.ht X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - dbj.org X-Get-Message-Sender-Via: host39.dwhost.net: authenticated_id: dbj@dbj.org X-Authenticated-Sender: host39.dwhost.net: dbj@dbj.org X-Source: X-Source-Args: X-Source-Dir: I am not a particular fan of "Annex K", but it seems Renie Urban has a rather elaborate implementation: https://github.com/rurban/safeclib I might dare to think it seems you perhaps did not know about it at the time of writing :) And. Interestingly WIN32 provides, WIN32 replacement for all CRT string manipulation: (although in some kind of "crazy camel" functions naming style) https://docs.microsoft.com/en-us/windows/win32/api/strsafe/ "interestingly" because you do not seem fond of CRT on the Windows platform. Neither am I. But I assume you knew about Win32 Kind regards