[mod.computers.vax] Need help with DEC/Shell functions

RIZZI@USC-ISIB.ARPA (Bill Rizzi) (01/02/86)

	The VMS C runtime library contains at least two routines from
the DEC?Shell package to assist in translating filenames from VMS to
shell and vice versa.  However the only documentation for these routines
(SHELL$TO-VMS and SHELL$FROM-VMS) is in the DEC/Shell  manuals which,
alas, I do not have.

	I would greatly appreciate it if someone with the DEC/Shell manuals
could send me the calling procedure and argument types for the two
routines above.

	Thanks,
		Bill Rizzi

ARPA; RIZZI@ISIB
UUCP: cca!ima!ism780b!billr

-------

info-vax@ucbvax.UUCP (01/10/86)

SHELL$TO_VMS
num_files_found = shell$to_vms(shell_filespec,action_routine,wild_flag)

char *shell_filespec;
int wild_flag
int action_routine();

SHELL$FROM_VMS
num_files_found = shell$from_vms(vms_filespec,action_routine,wild_flag)

char *vms_filespec;
int wild_flag;
int action_routine();
int shell$from_vms();

note:  wild_flag  0 wildcards found in vms_filespec are not expanded
				  1 wildcards are expanded
	
	   action_routine  address of routine of routine that takes 1 argument,
				  a null terminated string.  Action routine returns an odd
				  value, file translation continues.  An even value, no
				  further file translation.