[comp.lang.c] Wildcard expansion in VAX C?

LC.YRS@forsythe.stanford.edu (Richard Stanton) (02/17/90)

I apologize for posting to this group, but I don't know the name of
a more appropriate forum, and this seems like the best start.

I am looking for a routine to handle wildcard expansion in VAX C. I
have source for such a beast on my PC, but it is presumably PC
specific. SInce I don't know much about VAX/VMS directory structure
etc, it would be very helpful if someone out there has already
written such a routine.

Post the code, since there may be interest from other people.

Thanks

Richard Stanton

adrian@mti.mti.com (Adrian McCarthy) (02/23/90)

In article <8092@lindy.Stanford.EDU> LC.YRS@forsythe.stanford.edu
(Richard Stanton) writes:
>I am looking for a routine to handle wildcard expansion in VAX C. I
>have source for such a beast on my PC, but it is presumably PC
>specific. SInce I don't know much about VAX/VMS directory structure
>etc, it would be very helpful if someone out there has already
>written such a routine.

Look into using the LIB$FIND_FILE routine.  You can just pass it your
wildcarded specification, and you'll get back complete specifications
of all matching files.  It will work just like all the VAX programs
(like DIRECTORY, SEARCH, etc.) since they use the same routine.

Aid.