From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shells.gnugeneration.com (shells.gnugeneration.com [66.240.222.126]) by sourceware.org (Postfix) with ESMTP id 9E5843858403 for ; Sat, 25 Sep 2021 06:15:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9E5843858403 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=pengaru.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shells.gnugeneration.com Received: by shells.gnugeneration.com (Postfix, from userid 1000) id 887351A4036A; Fri, 24 Sep 2021 23:15:29 -0700 (PDT) Date: Fri, 24 Sep 2021 23:15:29 -0700 From: Vito Caputo To: libc-help@sourceware.org Subject: strftime() _GNU_SOURCE extension request Message-ID: <20210925061529.4dmdq3rbuvettzhr@shells.gnugeneration.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Sep 2021 06:15:31 -0000 Hello list, I'd like to propose a _GNU_SOURCE extension for strftime() treating str=NULL similarly to snprintf()'s C99 handling of str=NULL; write nothing to str, but return the number of bytes that /would/ be written if str were non-NULL and sufficiently large. Thanks, Vito Caputo