Does anyone know why this is crashing??
Robert Angelino
robert at triton.jpl.nasa.gov
Sat Jun 1 10:52:49 AEST 1991
I have this bit of code that works perfectly on a SPARC and crashes
on a VMS (O/S- V5.3-A) system?!
int
init_files(startup_file,...)
char *startup_file;
{
char buf[256];
#define EOPEN "Unable to open %s file \"%s\"\n"
(void) print_msg(PERROR,"init_files()",
sprintf(buf,EOPEN,"startup",startup_file));
.
.
.
.
.
.
}
main()
{
char buf[256];
(void) strcpy(buf,"tc_startup.dat");
(void) init_files(buf,...);
}
It's crashing when it hits the sprintf call in init_files().
I have the following logicals set in the build env
(LNM$PROCESS_TABLE)
"LNK$LIBRARY" = "SYS$LIBRARY:VAXCCURSE"
"LNK$LIBRARY_1" = "SYS$LIBRARY:VAXCRTL"
any and all help/suggestions are welcome and will prevent further
hair lose.
thanks in advance
--
- ------ - Robert Angelino
| | | ---- \ | | ms T-1704L
| | | | \ | | | 4800 Oak Grove Drive
| | | | -- | | | Pasadena, CA 91109
---| | | | \__/ | |___ robert at triton.jpl.nasa.gov
\____|et |_|ropulsion |_____\aboratory (818) 354-9574
More information about the Comp.lang.c
mailing list