home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / apps / 4769 < prev    next >
Encoding:
Text File  |  1992-09-15  |  2.3 KB  |  51 lines

  1. Newsgroups: comp.os.msdos.apps
  2. 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
  3. From: mbb@cbnewsb.cb.att.com (martin.brilliant)
  4. Subject: Re: C advice
  5. Message-ID: <1992Sep15.202556.5506@cbfsb.cb.att.com>
  6. Sender: news@cbfsb.cb.att.com
  7. Organization: AT&T
  8. References: <25042@oasys.dt.navy.mil>
  9. Date: Tue, 15 Sep 1992 20:25:56 GMT
  10. Lines: 39
  11.  
  12. From article <25042@oasys.dt.navy.mil>, by cmiller@oasys.dt.navy.mil (Catherine Miller):
  13. > .....
  14. >     Why is Microsoft C $400 and BC++ $80?  Obviously there's
  15. > some difference (or maybe not)....
  16.  
  17. I'm a user and ad hoc programmer, not a production software developer,
  18. so my viewpoint may not be what you're looking for.
  19.  
  20. I haven't heard of any bugs in Microsoft C, but I have heard of two
  21. bugs in the Borland C libraries that affected publicly distributed
  22. freeware and shareware that I used.  One was in some clock routine,
  23. and caused the system clock to fail to advance when I ran the ARJ
  24. archiver overnight to do a complete backup.  I found the other in text
  25. mode input when ELVIS (a clone of the vi editor) was compiled: instead
  26. of dropping <CR> only when it comes before <LF>, it drops every <CR>.
  27.  
  28. >     This possible employer has a UNIX system.  How different
  29. > is UNIX C from DOS C from DOS C++?
  30.  
  31. Borland C++ will compile C.  DOS vendors of both C and C++ compilers
  32. make every effort to be compatible with UNIX C and C++ respectively.
  33.  
  34. In DOS compilers you need a variety of "models" from "tiny" to "huge"
  35. that you don't need in a UNIX system because of the memory addressing
  36. scheme in the PC.  Otherwise, the language is the same.
  37.  
  38. Some of the library routines are different, for various reasons
  39. pertaining to the operating system.  You'll find more differences if
  40. you're doing system programming than if you're doing application
  41. programming.  But every application programmer should know that DOS
  42. text lines are terminated with carriage-return and line-feed, while
  43. UNIX and C text lines are terminated with new-line (which is the same
  44. character as line-feed), so in DOS you have to distinguish between
  45. text mode (in which the line terminating codes are converted) and
  46. binary mode (in which they aren't).
  47.  
  48.                             Marty
  49. marty@hoqaa.att.com        hoqaa!marty
  50. Martin B. Brilliant        (Winnertech Corporation)    
  51.