system() --- the C function from hell?
Sudheer Apte
sa1z+ at andrew.cmu.edu
Mon May 1 08:25:26 AEST 1989
I suspect you've simply forgotten to allocate space for the string str.
(Maybe you've declared it a char * ?) I doubt if system() has anything
to do with it. So you need to define something like
char str[40];
before you sprintf() into it.
Thanks,
Sudheer.
-----------------
Sudheer Mukund Apte sa1z at andrew.cmu.edu
Civil Engineering Department,
Carnegie-Mellon University, ...!harvard!andrew.cmu.edu!sa1z
Pittsburgh, PA 15213
------------------------------------------------------------------------
More information about the Comp.unix.wizards
mailing list