There are no standard library functions to get directory information such as the number of files.

It all depends on the OS you're using. For 32-bit Windows, the FindFirstFile / FindNextFile functions are used. For UNIX, the opendir / readdir functions are used. For 16-bit DOS it is a variety, depending on the compiler you used. For other OSes, consult your OS programmer's manual.

Regards,

Paul McKenzie