If your boss trusts DOS, you could as well
call DOS's FINDFIRST and FINDNEXT primitives
(not through your functions in the C library but
directly as assembly code),
and roll your own readdir from those.
That's simpler and more portable (among DOS versions)
than parsing dir's output, and just as fast as the builtin
readdir.