setmode
Sets, at the operating system level, the translation mode to the specified value
#include <nwfileio.h>
int setmode (
int handle,
int mode);
If successful, the setmode function returns the previous mode that was set for the file. Otherwise, a value of -1 is returned. When an error has occurred, the global variable errno contains a value indicating the type of error that has been detected.
The setmode function sets the translation mode to be the value of mode for the file whose file handle is given by handle. The mode parameter can contain the following value: