#include "las.h"
FUNCTION c_mknam (filename, hname, ext, access)
char *filename; char *hname; char *ext; long *access
Character string which contains the filename that is to have the extension added to it.
Character string which contains the hostname of the file specified filename.
Character string denoting the default extension for the file. If the user does not specify an extension (;), this extension is appended to the filename. If the user specifies an extension (;), the filename is not changed.
Denotes the type of access for which the file is to be opened. If access is for input, a check is made to ensure the file exists on disk. If access is for output, a check is made to ensure the file does not exist. If access is for update, no check is made to see if the file exists or not.
Valid values for access are:
= IREAD (0): read access = IWRITE (1): write access = IUPDATE (2): update access
The c_mknam() routine is used to return the host filename of filename.
c_mknam() returns
E_SUCC (0) --> successful completion E_FAIL (-1) --> operation failed