1994.02.14 12:43 "'b' and 'l' versus 'M' and 'I'", by Soren Pingel Dalsgaard

1994.02.14 12:43 "'b' and 'l' versus 'M' and 'I'", by Soren Pingel Dalsgaard

It has been pointed out that 'b' is used on some computers to signify binary mode (as opposed to text mode). As a result is has been suggested that 'M' and 'I' are used instead.

But since the mode string isn't actually passed to fopen but parsed by the library it doesn't really matter if 'b' is used in another context. You can ofcourse make your own private modifications and implement 'M' and 'I' checking.

I was thinking of adding '#ifdef NO_READ_SUPPORT' and '#ifdef NO_WRITE_SUPPORT' to all modules to make the library smaller in cases where only writing is needed. Any comments?

--
Soren Pingel Dalsgaard
pingel@daimi.aau.dk
Department of Computer Science
Aarhus University
Ny Munkegade 116
DK-8000 Aarhus C
DENMARK