zero_rec

Description

Fills a DP4 record with zeros

Syntax

If Metaware is being used zero_rec is defined as:

zero_rec(x) (_fill_char((char *)(x)+HEADER_SIZE,
*(short *)(x)-HEADER_SIZE,0))
(_fill_char is a Metaware intrinsic function)

Otherwise it is defined as:

zero_rec(x) (memset((char *)(x)+HEADER_SIZE,0,
*(short *)(x)-HEADER_SIZE))

Remarks

Only the database fields should be filled in and not the L, TYPENR fields and so on. HEADER_SIZE gives the amount of space taken up by the header fields in the DP4 record.