From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 4a081f63 for ; Tue, 31 Dec 2019 16:41:33 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 012929BC01; Wed, 1 Jan 2020 02:41:31 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id AD2399BBF3; Wed, 1 Jan 2020 02:40:45 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (1024-bit key; unprotected) header.d=ccc.com header.i=@ccc.com header.b="GOR/QZJw"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id AAEA39BBF3; Wed, 1 Jan 2020 02:40:42 +1000 (AEST) Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) by minnie.tuhs.org (Postfix) with ESMTPS id 050369BBF2 for ; Wed, 1 Jan 2020 02:40:42 +1000 (AEST) Received: by mail-qt1-f176.google.com with SMTP id j5so31862030qtq.9 for ; Tue, 31 Dec 2019 08:40:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccc.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Cc4ymjjKuUAU/WgRQlAAL8DH6OFdwtkMhNxXYWRWpUM=; b=GOR/QZJweY+mSYv4kzL7kAk5kLR0XRmE4+p8IyqToAZ84hk97NzAErWzqfHgj2hmTX kC28zS5VtlvVDUGQSZUGngXTARtsTfbTOoj9UWhlYIXLHE9CdSWI32PIXKAzQ502BE0a 0FNmKH7KaTzxlOTMoJH02A9LN9Ti6nx4WWz80= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Cc4ymjjKuUAU/WgRQlAAL8DH6OFdwtkMhNxXYWRWpUM=; b=hT571RbZ2xTVrFMyQy/nroEQcLqI/OAKXhWonVtAj+htqs6fTSe+QbnxDzjSIieKpi tA+4XkQPTm3oY9DggiMF7liMHAbokkRSmle7vHzyyQV22a/Ppl5/q6ZHbTxrn5q5BPzL AIZa9fQA2mdWJpRESB4fOq1Oi5LGDnGQNdU3ao8xc7Lx6WH8lcNCway8U5186fv7CBwb KkXRNxJ3jAZToQu2zQIrW1QTFTQri9CnYwHofh3YvkbIaCziq0HFGag71V2fiBcTaqeu thl2shSZNdOFvrDCoU+vDFAVQNq2Y1rKsLilY/qFeBF5AzBm6/cbkLeGe7XEkNnkouI8 pYxw== X-Gm-Message-State: APjAAAU8qc3R0fRXBLbrGgmPzCXZhqKVuG/VIL8hG6/8DxNrx8BYJ5bR j69Oe9CiqXBjAQYjNBIldkjre9tUUC8mvqbwStEQeg== X-Google-Smtp-Source: APXvYqzz6RYwOVr3muP3J9OdY14vY7Gx6hCksIwu5V+TRCnucGW3u8ARbJKBE5e1JCiraWVIfNhWfQCcoReaXK2p89c= X-Received: by 2002:ac8:4513:: with SMTP id q19mr47234966qtn.253.1577810440779; Tue, 31 Dec 2019 08:40:40 -0800 (PST) MIME-Version: 1.0 References: <201912310424.xBV4O2Cr016640@tahoe.cs.Dartmouth.EDU> In-Reply-To: <201912310424.xBV4O2Cr016640@tahoe.cs.Dartmouth.EDU> From: Clem Cole Date: Tue, 31 Dec 2019 11:40:14 -0500 Message-ID: To: Doug McIlroy Content-Type: multipart/alternative; boundary="000000000000d88f18059b029e75" Subject: Re: [TUHS] pic anomalies X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --000000000000d88f18059b029e75 Content-Type: text/plain; charset="UTF-8" On Mon, Dec 30, 2019 at 11:24 PM Doug McIlroy wrote: > The use of %% to designate a literal % in printf is not > a recent convention. It was defined in K&R, first edition. > FWIW, I still have an old (fading) copy of the galley proofs for the first edition. Page 147 (*Chapter 7 - Input and Output, Section 7.3 Formatted Output - Printf*) first full paragraph on the page: If the character after the % is not a conversion character, that character is printed: thus % may be printed by %%. > > Doug > > Ralph Cordery wrote: > > Though that may seem odd to our modern C-standardised eyes, it's > understandable in that if it isn't a valid %f, etc., format specifier > then it's a literal percent sign. > > --000000000000d88f18059b029e75 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Mon, Dec 30, 2= 019 at 11:24 PM Doug McIlroy <d= oug@cs.dartmouth.edu> wrote:
The use of %% to designa= te a literal % in printf is not
a recent convention. It was defined in K&R, first edition.
FWIW, I still have an old (fadin= g) copy of the galley proofs for the first edition.=C2=A0 Page 147 (Chap= ter 7 - Input and Output, Section 7.3 Formatted Output - Printf) first = full paragraph on the page:
If the character after the % is not a= conversion character, that character is printed: thus % may be printed by = %%.
=C2=A0

Doug


Ralph Cordery wrote:

Though that may seem odd to our modern C-standardised eyes, it's
understandable in that if it isn't a valid %f, etc., format specifier then it's a literal percent sign.

--000000000000d88f18059b029e75--