#include <ld.h> code = lr_getdir();
(LD_CONTROL << 8) | LC_code
where LD_CONTROL is '#' and LC_code is the code of the sub-directive.
"lr_getdir" reads a new directive from the LD input file. Subsequent "lr_" functions can be used to read fields from the directive.
If the previous directive has been completely read, "lr_getdir" verifies its checksum. Otherwise, "lr_getdir" skips over whatever is left of the previous directive and goes to the beginning of the next.
Copyright © 1996, Thinkage Ltd.