Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-lcc!styx!ames!ucla-cs!sdcrdcf!burdvax!psuvax1!vu-vlsi!hvrunix!swatsun!schwartz From: schwartz@swatsun (Scott Schwartz) Newsgroups: comp.unix.questions Subject: Re: Pascal to Unix Libraries Message-ID: <1100@carthage.UUCP> Date: Tue, 28-Apr-87 19:52:01 EDT Article-I.D.: carthage.1100 Posted: Tue Apr 28 19:52:01 1987 Date-Received: Sat, 2-May-87 03:59:14 EDT References: <826@batcomputer.tn.cornell.edu> Organization: Swarthmore College, Swarthmore PA Lines: 24 Keywords: Language Interaction, Pascal Summary: can do In article <826@batcomputer.tn.cornell.edu>, hurf@batcomputer.tn.cornell.edu (Hurf Sheldon) writes: > Is ther a way to call system subroutines from Pascal in the > Berkeley Pascal Compiler. ... Can fortran library functions be called from > pascal?. The "pascal programmer's guide" (I have Sun unix: is this part of the berkley distribution?) says you can declare C library calls as: procedure thingy( ); external c; and calls to fortran as: procedure thingy( ); external fortran; Any you have to look up how do declare various kinds of parameters. For C, at least, strings get declared as conformant arrays of characters; most things get passed as "var". Then you also have to link in the appropriate library (i.e. -lc) -- # Scott Schwartz @ Swarthmore College Computer Science Program # UUCP: ...{{seismo,ihnp4}!bpa, cbmvax!vu-vlsi, sun!liberty}!swatsun!schwartz # AT&T: (215)-328-8610 /* lab phone */