home *** CD-ROM | disk | FTP | other *** search
- From: rossin@hpfcso.FC.HP.COM (Ted Rossin)
- Date: Wed, 6 Jan 1993 16:21:55 GMT
- Subject: Re: Porting UNIX Code to the ST
- Message-ID: <107480013@hpfcso.FC.HP.COM>
- Organization: Hewlett-Packard, Fort Collins, CO, USA
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!hpscit.sc.hp.com!hplextra!hpfcso!rossin
- Newsgroups: comp.sys.atari.st.tech
- References: <1993Jan5.214420.8268@sae.com>
- Lines: 17
-
- Instead of using:
-
- fprintf(fp,"Life is hell\n"); /* Carriage return and Line feed */
-
- Try using:
-
- fprinf(fp,"Life makes my head hurt\r"); /* Carriage return */
-
-
- If I remember the reason that you are seeing the control M is because you
- opened the file up in binary mode ("wb"). If you were playing in ASCII
- mode ("w"), then the \n would generate the output that you would like.
-
-
- I hope this does the trick
-
- Ted.
-