Actually, both of these functions handle Windows crlf. In each case, any kind of line break is turned into the specified kind of line break.
For example, the
lftocr() function will convert line feeds into carriage returns, but it will also convert Windows carriage return line feed pairs into carriage returns. Basically, whatever you hand it, you’ll get back carriage return delimited lines.
Here is the internal code for the
Important Note – In checking the code to publish here, I just realized that the
crtolf() function in the 0.1.025 release is currently wrong, it converts to cr, not lf I have just fixed it so that it correctly converts to lf, here is the fixed internal code for the