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_csoread http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   D_CSOREAD

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

ARGUMENTS
   SET         The set type for which the current owner will be read.
   FIELD       The field type to be read from the current owner.
   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_csoread copies the contents of FIELD from current owner
   of SET to the area pointed to by value. If FIELD is an array field,
   the entire array is read. Elements of an array cannot be read individually.


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 owner.

    -8   S_NOCO        The current owner is null.

EXAMPLE
    char nane[32];         /* author name */
    ..
    /* print author name associated with info record */
    d_csoread(HAS_PUBLISHED,NAME,name);
    printf("author:%s\n",name);
    ..

See Also: d_crread d_csmread

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