Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- db_VISTA III - d_csmread http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   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);
         }
    ..

See Also: d_crread d_csoread

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson