Remix.run Logo
munchlax 10 days ago

If you're refering to fopen and friends, that's leaky too. Fopen alone has an append mode which was meant for tapes. And binary mode that was probably useful some day, but hasn't been since idk when. Fsync has its own set of trouble.

Read the fine print.

aDyslecticCrow 9 days ago | parent [-]

Its... less leaky i suppose. All my uses for fopen has been quite clean, never needing to dig much into the hidden details.

Well, i say that. Clearing the read buffer that sometimes gets stuck with empty characters based on carriage return semantics does force me in a bit.