Subject:
|
Re: how does a line end?
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Sat, 7 Apr 2007 12:51:28 GMT
|
Viewed:
|
1731 times
|
| |
| |
In lugnet.cad, Tore Eriksson wrote:
> 1. I always use alt. b. "printf("Hello, world!\n");" But as a self-made hobby
> programmer not knowing all the tweeks and geeks, I wouldn't be surprised if
> the interpretation of this may vary from one IDE to another, or if there is
> an .ini file or global variable somewhere that sets the output of \n.
>
> 2. As I always use \n, I don't know the output of the other alternatives. \n
> gives the sequence "\13\10", or "0x0C 0x0A" in hexadecimals from Borland TC++
> v3.0.
>
> - - - - -
>
> There was a Swedish finiance minister that said it's safer to have both a
> belt and suspenders. I think the optimal fool-proof way to go is to make
> software as liberal as possible when it comes to input, but conservative on
> output. Make it able to read Mac's special LF but write strictly CR+LF.
>
> /Tore
(For some unknown reason, all my backslashes disappeared in previous message.)
/Tore
|
|
Message is in Reply To:
| | Re: how does a line end?
|
| (...) 1. I always use alt. b. "printf("Hello, world!n");" But as a self-made hobby programmer not knowing all the tweeks and geeks, I wouldn't be surprised if the interpretation of this may vary from one IDE to another, or if there is an .ini file (...) (18 years ago, 7-Apr-07, to lugnet.cad, FTX)
|
24 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|