D_CRREAD (1)
read a field from the current record
SYNOPSIS
#include <typhoon.h>
d_crread(ulong fieldid, void *buf)
DESCRIPTION
d_crread copies the contents of the field specified by fieldid
into the buffer buf. If the field is a variable length field, only
the actual number of bytes in the field is copied.
DIAGNOSTICS
The status code returned by the function is also stored in the global
variable db_status.
S_OKAY
S_NOCD
There is no current database.
S_NOCR
There is no current record.
S_INVFLD
The id is not a valid field.
CURRENCY CHANGES
EXAMPLE
/* Get Pedersen's account number */
#include <typhoon.h>
if( d_keyfind(CUSTOMER_NAME, "Pedersen") == S_OKAY )
{
unsigned long account;
d_crread(CUSTOMER_ACCOUNT, &account);
printf("Account number %lu\\n", account);
}
IDENTIFICATION
Author: Thomas B. Pedersen.
Copyright (c) 1994 Thomas B. Pedersen.
SEE ALSO
- d_recread (1) -
- d_keyread (1) -
Id Rv $3 Dt $4 iD $3 $4 $5 $6 $7 $Id: d_crset (3) v 1 1 1995/06/12 18:58:10 tbp Exp $ r s-1TYPHOON s0 n ds - %-- t ds - (em
|
|