From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32692 invoked from network); 17 May 2020 16:38:42 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 17 May 2020 16:38:42 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 7AF889C98D; Mon, 18 May 2020 02:38:41 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id BF9CB9C5E0; Mon, 18 May 2020 02:38:29 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="upHNc512"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 6AFCD9C5E0; Mon, 18 May 2020 02:38:28 +1000 (AEST) Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com [209.85.217.48]) by minnie.tuhs.org (Postfix) with ESMTPS id F1A699C2EE for ; Mon, 18 May 2020 02:38:27 +1000 (AEST) Received: by mail-vs1-f48.google.com with SMTP id u2so385061vsi.13 for ; Sun, 17 May 2020 09:38:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SMq1r+Q6MjRxEHMM0GPV54pSymZjJw7PrxM2uNe+Glo=; b=upHNc512Bp1NKsREyFxlREBEcENp1rpWfaSfKW55O8w0AB2s2nekntru3iXnHh8Ax5 fKDKDEcjpbFQseEsg6uLNrM3rkcvA8BAA0IpC+m7f+E3VOWJPf+mM10UhbOtGlGWnw6U i8Ba+BhKIXtUycZPJ30QLT1TZ91stue7jyV6o5Juq6hSwEb2jk1/PZVaziFkNmApIpzJ WSuH8V4ydSBhINszEOOA/QFhORERMv5kOH5N7T3jdlLak8XNhy6HFxSkOuOf6NV6aaEa txNuZ3gsoP8FzhG1groCwzNfo451CAqzlzIAfXFvVdBzVGVV0X/TfLPtLGk/FypMvUkw 3kBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=SMq1r+Q6MjRxEHMM0GPV54pSymZjJw7PrxM2uNe+Glo=; b=tnuBCe/qvVfLQB56SfN5p48syUJgi/4/mm0Zh9oCyB9mu1Mqp8+WoNGTSknEu0Jwn5 rheBFiEfB8daFuFa2UY1u8/PoC/1WsESLcB8f1uPG1r1sQB6El1lLn5DrrryM4T4vBgW 33QHdf1LgvSMMFUGsROtXc5viz2kQJep2nhwMGJ9V0BLrWTR6alMWF58dPyokrhqhtDw hrXVG7oJT+XvezhlCT0eGJSmigcVMiXYMAQOBF5+7dUPsThDKw7OO3bkretxDoxOuUly dfqdS+UC9go+7jbFJlmS0gkImpBKjTEOHxOl9JHMXxm6xBTQADQmnHuElzHsD400T8EV pSew== X-Gm-Message-State: AOAM532w3Hx167izbkLbRcBh1AspIV+H/f9H/9Q8NJq2uvZ4Tl2mX/5E qRLoepN1zu2iNDQ9UZJ78pHFOtqcyTNWo/n28EK3qA== X-Google-Smtp-Source: ABdhPJwIevda4h2Rev7WtDTGBuPUzT/YMqvF15PIeHxd7OS9rnTVnghTjnyB9Ni5dcUUcJMB4cJdaWUfZ/Vbkd1qJGM= X-Received: by 2002:a67:2504:: with SMTP id l4mr8090591vsl.228.1589733507171; Sun, 17 May 2020 09:38:27 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:2b92:0:0:0:0:0 with HTTP; Sun, 17 May 2020 09:38:26 -0700 (PDT) In-Reply-To: <065a01d62c68$59b7d890$0d2789b0$@ronnatalie.com> References: <20200515213138.8E0F72D2D71E@macaroni.inf.ed.ac.uk> <077a01d62b08$e696bee0$b3c43ca0$@ronnatalie.com> <20200515233427.31Vab%steffen@sdaoden.eu> <5DB09C5A-F5DA-4375-AAA5-0711FC6FB1D9@ronnatalie.com> <20200516232607.nLiIx%steffen@sdaoden.eu> <065a01d62c68$59b7d890$0d2789b0$@ronnatalie.com> From: Paul Winalski Date: Sun, 17 May 2020 12:38:26 -0400 Message-ID: To: ron@ronnatalie.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [TUHS] v7 K&R C 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" On 5/17/20, ron@ronnatalie.com wrote: >> >> so here the EOF was different and char was signed 7-bit it seems. > > That makes perfect sense if you're dealing with ASCII, which is a 7-bit > character set. > > But that assumes you were reading "characters" rather than "bytes." Binary > data certainly could be any combination of 8 bits and you'd want something > out of band to signal errors/eof. Well, the function in question is called getchar(). And although these days "byte" is synonymous with "8 bits", historically it meant "the number of bits needed to store a single character". -Paul W.