[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fputc



On Fri, 17 Jul 1998, Yves Pelletier wrote:

> What it did before: insert an \r before every lone \n it
> encountered.
> What it does now: output characters as-is, without end-of-line
> translation.

I think the ANSI C standard is quite specific with this. \n does not
necessarily translate to directly to one character but means anything that
moves the cursor to the beginning of the next line. On DOS and related 
systems this would be CRLF (some compilers I tested, however, didn't
operate in this way which was extremely annoying for porting software).
For MiNT we need to choose which we want and then stick with it.

         -     ---------- = = ---------//--+
         |    /     Kristoffer Lawson      |    www.fishpool.com
         +-> |    setok@fishpool.com       |  - - --+
             |-- Fishpool Creations Ltd - /         |
             +-------- = - - - = ---------      /~setok/