#include <ld.h> length = lr_length();
"lr_length" tells how many bytes have not yet been read in the current record. This will always be a positive integer, except for records which are continued by LD_CONTINUATION records. In this case, "lr_length" returns the negative of the number of bytes left in the record, to indicate that the record continues on to a new record.
Note that the correct length is returned for extended records.
Copyright © 1996, Thinkage Ltd.