DOPEN C-3


NAME



dopen - open RMSfile

SYNOPSIS



#include

DFILE *dopen (filename, mode)
char *filename;
char *mode;

DESCRIPTION



Dopen opens the RMSfile named filename for future I/O. Dopen returns a
pointer to a control block to identify the RMSfile in subsequent
operations.

Filename is the pathname of the RMSfile to open.

Mode is a character string that states the types of operations to be
done on the RMSfile. Mode may have one of the following values:

Modes Operations
"r" open for reading
"w" zero RMSfile records, open for writing
"a" open for writing
"u" open for both reading and writing

SEE ALSO

dlopen(C-3), dclose(C-3)
Chapter 4, RMS Programming Guide

DIAGNOSTICS



Dopen returns the pointer NULL if filename cannot be accessed.