D_CSMREAD

SUMMARY
d_csmread(SET,FIELD,value[,dbn])
int SET
long FIELD;
char *value;
int dbn;

ARGUMENTS
SET The set type for which the current member will be read.
FIELD The field type to be read from the current record.
value A pointer to the data area that will receive the field
contents.
dbn (optional)The number of the database containing the record

DESCRIPTION
Function d_csmread copies the contents of FIELD from current member
of SET to the area pointed to by value.

CURRENCY CHANGES
None

RETURN CODES
6 S_DELETED Record has been deleted.

-2 S_INVSET Invalid set type. Probably passed a record or field
type instead of a set type.

-5 S_INVFLD Invalid field type. You either did not pass a field
type or you passed a field type which is not in the
current member.

-9 S_NOCM The current member is null.

EXAMPLE
char nane[32]; /* author name */
..
/* print all authors in the database */
for (d_findfm(AUTHOR_LIST); db_status==S_OKAY; d_findnm(AUTHOR_LIST))
{
d_csmread(AUTHOR_LIST,NAME,name);
printf("%ss\n",name);
}
..