Hi Everyone,
I've been having fun playing with Grant Searle's CP/M on FPGA project. He has a nice utility to download a file from console input to a file, but it only goes from pc->CP/M so I'd like to write a transfer type tool that can do the same thing in both directions. A feature I want is to be able to do wildcards so I can send an entire directory at one time. This is easy to do on the pc side with functions like findfirst and findnext, but I don't see these functions in BDS C on the CP/M side. BDOS does have some functions 17 (F_SFIRST) and 18 (F_SNEXT), but it isn't at all clear to me how I would use them to do wildcard searching like *.TXT, or even if that is what they are supposed to do. Does anyone have some CP/M 2.2 C source that searches a directory with wildcards?
Thanks,
Alan
I've been having fun playing with Grant Searle's CP/M on FPGA project. He has a nice utility to download a file from console input to a file, but it only goes from pc->CP/M so I'd like to write a transfer type tool that can do the same thing in both directions. A feature I want is to be able to do wildcards so I can send an entire directory at one time. This is easy to do on the pc side with functions like findfirst and findnext, but I don't see these functions in BDS C on the CP/M side. BDOS does have some functions 17 (F_SFIRST) and 18 (F_SNEXT), but it isn't at all clear to me how I would use them to do wildcard searching like *.TXT, or even if that is what they are supposed to do. Does anyone have some CP/M 2.2 C source that searches a directory with wildcards?
Thanks,
Alan