Subject: Re: Need Help Porting C code to VMS From: "John E. Malmberg" Date: Wed, 31 Dec 2003 23:44:46 GMT Newsgroups: comp.os.vms Lyndon Bartels wrote: > The original code had a filename comparison that was failing. On a unix box, the variable would be in lowercase, without version number. While on VMS (thank-you debugger people!!!!!) I could see that it was uppercase with a version number. Later comparison (orignial code, not mine) would fail. > > Like I said, I wanted to change the original code a little as practical so I could get the software running. Then I could evaluate the software. http://h71000.www7.hp.com/commercial/c/index_alpha.html See the C rtl documentation or the JFP Python source for a method of setting the features inside your program using LIB$INITIALIZE sections. $! Return UNIX filenames instead of OpenVMS by default. $define/user DECC$FILENAME_UNIX_REPORT ENABLE $! $! Do not report version numbers $define/user DECC$FILENAME_UNIX_NO_VERSION ENABLE $! $! Treat all filenames as UNIX filenames $define/user DECC$FILENAME_UNIX_ONLY ENABLE $! $! Preserve case on ODS-5 volumes $!----------------------------------- $define/user DECC$EFS_CASE_SPECIAL ENABLE The full list is in the hardcopy of the C runtime library manual. The last time I looked, it was missing from the online version. -John wb8tyw@qsl.network Personal Opinion Only