home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / atari / st / tech / 6525 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  810 b 

  1. From: rossin@hpfcso.FC.HP.COM (Ted Rossin)
  2. Date: Wed, 6 Jan 1993 16:21:55 GMT
  3. Subject: Re: Porting UNIX Code to the ST
  4. Message-ID: <107480013@hpfcso.FC.HP.COM>
  5. Organization: Hewlett-Packard, Fort Collins, CO, USA
  6. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!hpscit.sc.hp.com!hplextra!hpfcso!rossin
  7. Newsgroups: comp.sys.atari.st.tech
  8. References: <1993Jan5.214420.8268@sae.com>
  9. Lines: 17
  10.  
  11. Instead of using:
  12.  
  13.     fprintf(fp,"Life is hell\n");  /* Carriage return and Line feed */
  14.  
  15. Try using:
  16.  
  17.     fprinf(fp,"Life makes my head hurt\r");  /* Carriage return */
  18.  
  19.  
  20. If I remember the reason that you are seeing the control M is because you
  21. opened the file up in binary mode ("wb").  If you were playing in ASCII
  22. mode ("w"), then the \n would generate the output that you would like.  
  23.  
  24.  
  25.         I hope this does the trick
  26.  
  27.             Ted.
  28.