Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Ben Pfaff <blp@cs.stanford.edu> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: floor() |
| Date | 2012-08-01 10:59 -0700 |
| Message-ID | <87wr1io5n3.fsf@blp.benpfaff.org> (permalink) |
| References | (1 earlier) <jvb80h$6pp$1@news.httrack.net> <50195010$0$3109$ba620e4c@news.skynet.be> <ln7gti34ei.fsf@nuthaus.mib.org> <871ujqpkxf.fsf@blp.benpfaff.org> <jvbqaa$gtr$1@dont-email.me> |
James Kuyper <jameskuyper@verizon.net> writes:
> On 08/01/2012 01:43 PM, Ben Pfaff wrote:
>> Keith Thompson <kst-u@mib.org> writes:
>>
>>> Andre <pas.mois@ailleur.be> writes:
>>> [...]
>>>> printf("%d\n\r",floor(2.2333));
>>> [...]
>>>
>>> Apart from the type mismatch, the "\r" is not necessary. Printing
>>> "\n" to a text stream will emit whatever is needed to mark the end
>>> of a line.
>>
>> Furthermore, when both \r and \n are used, the normal order is
>> \r\n (CR LF, not LF CR).
>
> According to <http://en.wikipedia.org/wiki/Newline>, LF+CR is used for
> "Acorn BBC and RISC OS spooled text output".
I stand by my claim about "normal" order. I admit that there may
be systems that use an abnormal order.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
floor() Andre <pas.mois@ailleur.be> - 2012-08-01 14:34 +0200
Re: floor() Xavier Roche <xroche@free.fr.NOSPAM.invalid> - 2012-08-01 14:38 +0200
Re: floor() Andre <pas.mois@ailleur.be> - 2012-08-01 16:47 +0200
Re: floor() Andre <pas.mois@ailleur.be> - 2012-08-01 17:49 +0200
Re: floor() Ike Naar <ike@sverige.freeshell.org> - 2012-08-01 15:53 +0000
Re: floor() falk@rahul.net (Edward A. Falk) - 2012-08-01 18:26 +0000
Re: floor() Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-08-02 16:30 +0000
Re: floor() Keith Thompson <kst-u@mib.org> - 2012-08-02 14:58 -0700
Re: floor() "Heinrich Wolf" <invalid@invalid.invalid> - 2012-08-01 17:56 +0200
Re: floor() Noob <root@127.0.0.1> - 2012-08-01 17:58 +0200
Re: floor() Keith Thompson <kst-u@mib.org> - 2012-08-01 10:31 -0700
Re: floor() Ben Pfaff <blp@cs.stanford.edu> - 2012-08-01 10:43 -0700
Re: floor() James Kuyper <jameskuyper@verizon.net> - 2012-08-01 13:51 -0400
Re: floor() Ben Pfaff <blp@cs.stanford.edu> - 2012-08-01 10:59 -0700
Re: floor() Noob <root@127.0.0.1> - 2012-08-02 10:04 +0200
Re: floor() Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-08-02 16:33 +0000
Re: floor() Craig Franck <craiglfranck@gmail.com> - 2012-08-03 20:49 -0400
Re: floor() Noob <root@127.0.0.1> - 2012-08-01 16:47 +0200
Re: floor() Andre <pas.mois@ailleur.be> - 2012-08-01 16:48 +0200
Re: floor() TheGunslinger <mikiesrunsbaal.sec@sbcglobal.net> - 2012-08-01 09:49 -0500
Re: floor() Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-08-01 10:58 -0400
Re: floor() TheGunslinger <mikiesrunsbaal.sec@sbcglobal.net> - 2012-08-01 10:02 -0500
Re: floor() James Kuyper <jameskuyper@verizon.net> - 2012-08-01 11:10 -0400
Re: floor() TheGunslinger <mikiesrunsbaal.sec@sbcglobal.net> - 2012-08-01 10:12 -0500
Re: floor() pete <pfiland@mindspring.com> - 2012-08-01 12:04 -0400
Re: floor() James Kuyper <jameskuyper@verizon.net> - 2012-08-01 12:04 -0400
Re: floor() Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-08-01 13:07 -0400
Re: floor() Craig Franck <craiglfranck@gmail.com> - 2012-08-03 21:11 -0400
csiph-web