Checksum: 23353
Path: utzoo!utgpu!adam
From: adam@gpu.utcs.toronto.edu (Adam R. Iles)
Date: Wed, 18-Jan-89 17:27:24 EST
Message-ID: <1989Jan18.172724.25988@gpu.utcs.toronto.edu>
Organization: University of Toronto Computing Services
Newsgroups: comp.sys.ibm.pc
Subject: Re: Turbo C 2.0 and EMS
References: <31050@tut.cis.ohio-state.edu> <597@dms.UUCP> <6957@june.cs.washington.edu> <5543@phoenix.Princeton.EDU>
Reply-To: adam@gpu.utcs.UUCP (Adam R. Iles)
Keywords: Turbo-C Bug cprintf

In article <5543@phoenix.Princeton.EDU> jwbirdsa@phoenix.Princeton.EDU (James Webster Birdsall) writes:
>In article <6957@june.cs.washington.edu> robertb@uw-june.UUCP (Robert Bedichek) writes:
>>So, my question: Does anyone know of any bugs in TC 2.0?  The only
>
>   cprintf() treats the character '\n' as a linefeed only -- it omits
>the carriage return. I would say that this was some sort of bizarre
>feature :-) except that in TC 1.5 '\n' was treated as a normal CR/LF
>combination.

This is actually the effect of them "FIXING" a previous bug.  The
documentation appearantly stated that this was the action that cprintf()
would take.

>   Since I ended up having to use gotoxy(), generating a lot more code

A simpler solution would be to change the '\n' at the end of the string
into a '\r' '\n' sequence.  this will eliminate the need for a gotoxy()
call and should speed up the code.

I got this information from the latest issue of Dr. Dobbs (Jan 1989)
If you want the full scoop on this "Feature" of TC 2.0 read the
C Programmint column in that issue.

One good feature of TC 2.0 is that now you can use 43 line mode with an
ATI EGA Wonder card (this didn't work in TC 1.5.)


>-- 
>James W. Birdsall  jwbirdsa@phoenix.Princeton.EDU  jwbirdsa@pucc.BITNET
>   ...allegra!princeton!phoenix!jwbirdsa!  Compu$erve: 71261,1731
>"For it is the doom of men that they forget." -- Merlin


-- 
    
        Any opinions stated above may, or may not, refect those
        of any sane person living, dead, or just sleeping.

       Adam R. Iles:	adam@utgpu
                        adam@gpu.utcs.utoronto.ca
