#include "las.h" #include "vll.h"FUNCTION c_lswrit (fd, key, clen, dlen, cbuf, dbuf, dtype)
long *fd; char *key; long *clen; long *dlen; char *cbuf; unsigned char *dbuf; char *dtype;
File descriptor of an opened label services file. The file descriptor is set by c_lsopen() and should not be altered.
Key of the record to be written. Spaces may be embedded in the key; however, right justified spaces are ignored. If the key is NULL or a blank, the key written is blank.
The number of bytes (not counting the null terminator) in the character portion of the record to be written to the label services file.
The number of bytes in the data portion of the record to be written to the label services file.
Character buffer to be written to the character portion of the label services record.
Data buffer to be written to the data portion of the label services record.
Data type of the data portion of the record. Valid data types are:
= B : unsigned byte data = I2: signed two byte data = I4: signed four byte data = R4: four byte floating point data = R8: eight byte floating point data
The c_lswrit() call is used to write one record to the label services file. The c_lswrit() function requires the file to be opened with write access.
A key value of "DELETED" is invalid.
c_lswrit() returns
E_SUCC (0) --> successful completion E_FAIL (-1) --> operation failed