rle_getcom
- get a picture comment from an RLE file.
rle_delcom - delete a picture comment from an RLE file.
char * rle_putcom( value, the_hdr )
char * value;
rle_hdr * the_hdr;
char * rle_getcom( name, the_hdr )
char * name;
rle_hdr * the_hdr;
char * rle_delcom( name, the_hdr )
char * name;
rle_hdr * the_hdr;
Rle_getcom returns a pointer to the data portion of a picture comment from an RLE file. The comment is assumed to be in the form name=value; a pointer to value is returned. If the comment is of the form name, a pointer to the null character at the end of the string is returned. If there is no comment of the above forms, a NULL pointer is returned. The the_hdr structure contains the picture comments in question.
Rle_delcom is used to delete a picture comment from a rle_hdr(3) structure. It is called with the name of the comment and the the_hdr structure to be modified. The first comment in the rle_hdr structure of the form name=value or name will be deleted. The deleted comment will be returned as the function value.