/************************************************************************ * * * Copyright Digital Equipment Corporation 1998. All rights reserved. * * * * Restricted Rights: Use, duplication, or disclosure by the U.S. * * Government is subject to restrictions as set forth in subparagraph * * (c) (1) (ii) of DFARS 252.227-7013, or in FAR 52.227-19, or in FAR * * 52.227-14 Alt. III, as applicable. * * * * This software is proprietary to and embodies the confidential * * technology of Digital Equipment Corporation. Possession, use, or * * copying of this software and media is authorized only pursuant to a * * valid written license from Digital or an authorized sublicensor. * * * ************************************************************************/ /* decc$translate_vms_example.c */ /* Demonstrate translation of a "UNIX" name to VMS form */ /* define a foreign command and pass the name as the */ /* argument. */ #include #include int main(int argc, char *argv[]) { char *ptr; /* translation result */ ptr = decc$translate_vms(argv[1]); if ((int) ptr == 0 || (int) ptr == -1) printf("could not translate %s\n", argv[1]); else printf("%s is translated to %s\n", argv[1], ptr); }