Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!pasteur!ucbvax!USU.BITNET!ERICMC From: ERICMC@USU.BITNET (Eric McQueen) Newsgroups: comp.os.vms Subject: RE: Wild card expansion under VAX11-C: Code Wanted Message-ID: <8803041924.AA23968@jade.berkeley.edu> Date: 4 Mar 88 04:55:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 22 In article <5361@ames.arpa> woo@pioneer.UUCP (Alex Woo) writes: > How does one expand wildcards in command line arguments in > VAX11-C under VMS? I have a tool for C programmers using VMS, especially those porting facilities from Un*x. It prompts for command line arguments (unless you have already specified some via a "foreign command" or MCR), expands file wildcards found on the command line, and redirects `stdin' or `stdout'. Here's a sample use: main( argc, argv ) int argc; char **argv; { /* local variables */ #ifdef VAXC /* Or whatever the ANSI-X3J11-conforming word will be */ extern char **cmd_lin(); argv = cmd_lin( "", argc, argv ); /* The first argument provides misc. options (not currenly used). */ #endif /* your routine */ }