Xref: utzoo comp.unix.questions:13156 comp.unix.wizards:15837 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!mentor.cc.purdue.edu!yuf From: yuf@mentor.cc.purdue.edu (Kyle Grieser) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: system() --- the C function from hell? Keywords: system, unix, question, does anyone use this line? Message-ID: <2603@mentor.cc.purdue.edu> Date: 30 Apr 89 23:12:32 GMT References: <1827@uop.edu> Reply-To: yuf@mentor.cc.purdue.edu (Kyle Grieser) Organization: PUCC UNIX Group Lines: 14 In article <1827@uop.edu> jeff@uop.edu (Jeff Ferguson) writes: > >OK, people, for $200 and the chance at the Chevy Sprint Turbo --- my >question is this: what is happenning here an how can it be fixed? I Well, from what you have posted it is hard to tell if it is your fault or not. What is "str" declared as. If it is declared as a "char *" before the integers, and you don't allocate space for it then the sprintf might just be writing all over the integers. But, like I said, without a bit more information it is hard to tell if it is your fault or system()'s. ----- Kyle Grieser, Purdue University Computing Center mentor.cc.purdue.edu!yuf, yuf@mentor.cc.purdue.edu