Path: utzoo!attcan!uunet!sdrc!diwarner From: diwarner@sdrc.UUCP (Mark_Warner) Newsgroups: comp.sys.ibm.pc Subject: Re: Turbo C 2.0 and EMS Summary: TC 2.0 cprintf not a bug (feature) Message-ID: <502@sdrc.UUCP> Date: 18 Jan 89 16:05:52 GMT References: <31050@tut.cis.ohio-state.edu> <597@dms.UUCP> <5543@phoenix.Princeton.EDU> Organization: Structural Dynamics Research Corp., Cincinnati Lines: 34 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: > > 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. Took me a while to track the problem down when I ported a > program from 1.5 to 2.0. > stuff deleted This is truly not a bug. I also got bitten by the change to cprintf(). I also called Borland and after I found out that the manual had the change marked in it under CPRINTF() I felt pretty dumb. Anyhow they say that it was a bug in 1.5 and that they were fixing it. If you use '\n\r' in 2.0 you get the same result as before in 1.5 with '\n'. I used this and it works okay. As for the size of code because of gotoxy() I believe it is because of the gotoxy() where x,y are for the current window and not for the whole screen. For example point 1,10 in window1 might actually translate to point 10,15 on the real screen and the function must be able to handle this and to verify that it doesn't go outside the current window. I haven't found any other problems with TC 2.0 but there was something I did find with the documentation on fgets() I think. It's one of the Xgets() functions and the doc says that it doesn't put the '\n' in the string and it does. The function still functions like it did in 1.5 but the doc is just wrong. That is if the function is correct. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Mark Warner | UUCP: uunet!sdrc!diwarner SDRC | Milford Ohio | This space is for rent. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=