delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/08/16:15:47

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro -> possible bug
Date: Thu, 8 Jan 1998 18:43:55 +0000
Organization: None
Distribution: world
Message-ID: <p0KJJBAr5Rt0Ew2p@talula.demon.co.uk>
References: <34B39B82 DOT 4D55 AT oce DOT nl>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 14
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

A. Jans-Beken writes:
>It seems that the standard function reads a string INCLUDING the '\n' at
>the end while the packed function reads a string WITHOUT the trailing
>'\n'.

The Allegro code reads the entire thing including the \n, but doesn't
bother storing the trailing character in the returned string. Yes, this
a slight difference, but I find it much more convenient that way :-)
This should certainly be mentioned in the docs, though...


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019