166
submitted 2 months ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 7 points 2 months ago

Ahhh, I see. Looks like the magic happens somewhere further down in iostream.

[-] [email protected] 4 points 2 months ago

It's controlled by whether the stream's opened in text mode or binary mode. On Unix, they're the same, but on Windows, text mode has line ending conversion.

this post was submitted on 05 Apr 2025
166 points (95.1% liked)

Programmer Humor

36755 readers
432 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS