home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.apps
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewse!cbnewsd!att-out!cbfsb!cbnewsb.cb.att.com!mbb
- From: mbb@cbnewsb.cb.att.com (martin.brilliant)
- Subject: Re: C advice
- Message-ID: <1992Sep15.202556.5506@cbfsb.cb.att.com>
- Sender: news@cbfsb.cb.att.com
- Organization: AT&T
- References: <25042@oasys.dt.navy.mil>
- Date: Tue, 15 Sep 1992 20:25:56 GMT
- Lines: 39
-
- From article <25042@oasys.dt.navy.mil>, by cmiller@oasys.dt.navy.mil (Catherine Miller):
- > .....
- > Why is Microsoft C $400 and BC++ $80? Obviously there's
- > some difference (or maybe not)....
-
- I'm a user and ad hoc programmer, not a production software developer,
- so my viewpoint may not be what you're looking for.
-
- I haven't heard of any bugs in Microsoft C, but I have heard of two
- bugs in the Borland C libraries that affected publicly distributed
- freeware and shareware that I used. One was in some clock routine,
- and caused the system clock to fail to advance when I ran the ARJ
- archiver overnight to do a complete backup. I found the other in text
- mode input when ELVIS (a clone of the vi editor) was compiled: instead
- of dropping <CR> only when it comes before <LF>, it drops every <CR>.
-
- > This possible employer has a UNIX system. How different
- > is UNIX C from DOS C from DOS C++?
-
- Borland C++ will compile C. DOS vendors of both C and C++ compilers
- make every effort to be compatible with UNIX C and C++ respectively.
-
- In DOS compilers you need a variety of "models" from "tiny" to "huge"
- that you don't need in a UNIX system because of the memory addressing
- scheme in the PC. Otherwise, the language is the same.
-
- Some of the library routines are different, for various reasons
- pertaining to the operating system. You'll find more differences if
- you're doing system programming than if you're doing application
- programming. But every application programmer should know that DOS
- text lines are terminated with carriage-return and line-feed, while
- UNIX and C text lines are terminated with new-line (which is the same
- character as line-feed), so in DOS you have to distinguish between
- text mode (in which the line terminating codes are converted) and
- binary mode (in which they aren't).
-
- Marty
- marty@hoqaa.att.com hoqaa!marty
- Martin B. Brilliant (Winnertech Corporation)
-