🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #2070

Re: why do i need an extra carridge return?

#2070
From: Richard A. O'Keefe
Date: Tue, 30 Apr 1991 02:17
24 lines
1503 bytes
In article <9104262300.AA24421@thunder.LakeheadU.Ca>, delingma@THUNDER.LAKEHEADU.CA writes:
> I am trying to get a function built that will terminate
> after reading some stuff followed by a carridge return.
> I can make it work for ANY other character, but not a CR.

Why carriage returns (there is no d in "carriage")?
What programming language are you using?
What implementation of it?
What operating system?
Have you checked your manual to see what character or characters
appears at the end of a line?
If you are using a Prolog system on a PC, there is a good chance
that lines are terminated by line feed characters (LF = 10) and
that carriage returns are stripped out so that you never see them.
(Note that the Common Lisp and Scheme definitions *demand* that
lines appear to be terminated by a single #\Newline character,
whatever that is.)

Any good Prolog textbook will tell you how to read a line of
characters.  Mine does.

-- 
Bad things happen periodically, and they're going to happen to somebody.
Why not you?					-- John Allen Paulos.
Technical Details
Message-ID: <5448@goanna.cs.rmit.oz.au>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!munnari.oz.au!goanna!ok
References: <9104262300.AA24421@thunder.LakeheadU.Ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!munnari.oz.au!goanna!ok
From: ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe)
Newsgroups: comp.lang.prolog
Subject: Re: why do i need an extra carridge return?
Message-ID: <5448@goanna.cs.rmit.oz.au>
Date: 30 Apr 91 02:17:44 GMT
References: <9104262300.AA24421@thunder.LakeheadU.Ca>
Organization: Comp Sci, RMIT, Melbourne, Australia
Lines: 24