From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,ae6ad2aab5b0a60c,start X-Google-Attributes: gid1164f8,public From: cagard@csc.com (Cynthia Agard) Subject: More decc problems on alpha6.1 Date: 1996/05/07 Message-ID: <4mo0dp$6ic@explorer.csc.com>#1/1 X-Deja-AN: 153545789 organization: Computer Sciences Corporation newsgroups: comp.sys.dec This old fortran vax/vms programmer is having problems with decc alpha 6.1 environment. Tell me what is wrong with this?? I'm skipping over stuff and showing you the meat of my problem. Hopefully it is easy and you'll see it 1,2,3. -------------------- The following is contained in a single module which blows up whenever I run it. #include #include #include #include #include #include #include "mfhdf.h" long dump_meta_attribute (FILE *file_ptr, int32 sd_id, char *attrname) { size_t suffix_loc; . . . /* sure am skipping over a bunch of stuff */ suffix_loc = strlen (attrname) - 1; attrname [suffix_loc]++; /*=====THIS IS WHERE IT EXPLODES ACC VIO */ } int display_meta_data (char *inhdf, char *outmeta, int mdspec_bmap) { char *sdattrname[4] ={"CoreGranuleMetadata.0", "CoreCollectionMetadata.0", "ProductGranuleMetadata.0", "ProductCollectionMetadata.0" }; int32 stat; FILE *meta_file_ptr; int32 sd_id; . . . stat = dump_meta_attribute (meta_file_ptr, sd_id, sdattrname[0]); } Much appreciated. Cindy