Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!dog.ee.lbl.gov!ucsd!usc!zaphod.mps.ohio-state.edu!mips!decwrl!uunet!mcsun!i2unix!inria!seti!minos!jourdan From: jourdan@minos.inria.fr (Martin Jourdan) Newsgroups: comp.lang.pascal Subject: Re: Sun Pascal: Pascal calls C Keywords: Pascal Sun C Message-ID: <1561@seti.inria.fr> Date: 28 Aug 90 09:30:47 GMT References: <141406@sun.Eng.Sun.COM> Sender: news@seti.inria.fr Reply-To: jourdan@minos.inria.fr Organization: INRIA Lines: 15 What do you mean by "the routines fail"? Is it that they don't get compiled correctly? Or they don't receive correct arguments from Pascal? I used several C routines from Pascal programs and never had any problem. BUT... using ``system("cd xxx")'' is bound to fail (i.e., return without any observable effect) when called either from C or from Pascal. The reason is that "system" spawns a shell to execute the command. The shell will change its **own** directory but **not the one of its parent process** (the Pascal program). You'd better re-read your Unix manual... Martin Jourdan , INRIA, Rocquencourt, France. Why do we need all these %$#@%$# disclaimers?!?