#include "las.h" #include "vll.h"FUNCTION c_lsdel (fd, key)
long *fd; char *key;
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 deleted. Spaces may be embedded in the key; however, right justified spaces are ignored. If the key is NULL or a blank, the current record within the file is marked for deletion. If a value is specified for the key, the first record found with the same key is marked for deletion.
The c_lsdel() call is used to mark a record for deletion. The c_lsdel() function requires the label services file to be opened for read/write access. A record is marked for deletion by replacing the key with the string "DELETED" ("DELETED" is an invalid key specification).
c_lsdel() returns
E_SUCC (0) --> successful completion E_FAIL (-1) --> operation failed