Mail Archives: djgpp-workers/1996/08/22/11:29:28
> What advantage do these have over the existing versions? It seems to
> be a lot of extra complexity for what should be a trivial function.
>
> Also, djgpp already includes utod and dtou to do cr/lf conversions.
Yes, I know. But users should know what code use in the file. And cannot use
it as filter. However, it's not important. Here is another thing in djgpp.
+0 5 pos.
"FOO\r\nBAR\r\n" (opened by text mode)
after `read (fh,buf,3)', it returns 3 and seek at 3
after `read (fh,buf,4)', it returns 3 and seek at 4 but delete '\r'
It separates CR from LF. So I cannot found the difference from BUF
and cannot seek backward easily.
New version delete only CR before LF and check EOF(Ctrl+Z) by same pass.
------
Daisuke Aoyama
jack AT st DOT rim DOT or DOT jp
- Raw text -