unullify

Updates the fields appearing in the ‘if’ list to NULL in the general I/O buffer.

void unullify(uc, ch)

struct uctrl *uc;

int ch;

Parameters

  • uc—address of the current control block.
  • ch—no longer used.

Return Values

Not applicable.

Description

Updates the fields appearing in the ‘if’ list to NULL in the general I/O buffer.

unullify is available to nullify the foreign key fields in the Wildcard mode 1 connector request and is only available in the Wildcard mode 1 connector request.

This example implements the request available to nullify the foreign key fields in the Wildcard mode 1 connector request.

The following function is called in the example:

  • UpdateRecord—update the record described by the current control block.
PerformNullify( struct uctrl *ControlBlock )
{
short Hitfound = 0;
unsigned char *PRABuffer;
...
/* Find record */
...
Hitfound = uhitchk ( ControlBlock, 0, PRABuffer );
if ( HitFound )
{
unullify ( ControlBlock, 0 );/*Now update the record with*/
/*the changed general I/O */
/*buffer*/
}
...
}