NAME
MputLegend - write a legend
SYNOPSIS
#include "csf.h"
int MputLegend
(
MAP *m,
CSF_LEGEND *l,
size_t nrEntries
);
PARAMETERS
-
MAP *m
-
Map handle
-
CSF_LEGEND *l
-
read-write, array with name and entries, the entries
are sorted before writing to the file.
Strings are padded with zeros.
-
size_t nrEntries
-
number of array elements. That is name plus real legend entries
DESCRIPTION
MputLegend writes a (version 2) legend to a map replacing
the old one if existent.
See csfattr.h for the legend structure.
RETURNS
0 in case of an error,
nonzero otherwise
MERRNO
NOACCESS
WRITE_ERROR
SEE ALSO
MgetNrLegendEntries
,
MgetLegend