🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.pascal
Article #294

HELP!! with Berkeley Pascal 1.1

#294
From: Mail Database
Date: Sun, 11 May 1986 02:29
24 lines
1192 bytes
I am trying to use library routines from /usr/libc.a in a Berekely Pascal
program.  According to the manuals, it is possible, but I can't for the life
of me figure out how.  If I do the following:

program help;

type
	str= packed array [0..79] of char;

procedure system(string: str); external;

begin
 	system('man man');
end.

I get messages that system is an already predeclared library routine.  Without
declaring it as an external routine I'm told that it is undefined.  I loose
either way.  I played with .h files and didn't get much further.  Any ideas?

Bruce Jones
Mail Database Project
maildb@dartvax.UUCP
mailb@dartmouth.EDU
maildb@dartmouth.CSNET
Technical Details
Message-ID: <4552@dartvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!dartvax!maildb

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!dartvax!maildb
From: maildb@dartvax.UUCP (Mail Database)
Newsgroups: net.lang.pascal
Subject: HELP!! with Berkeley Pascal 1.1
Message-ID: <4552@dartvax.UUCP>
Date: Sat, 10-May-86 22:29:11 EDT
Article-I.D.: dartvax.4552
Posted: Sat May 10 22:29:11 1986
Date-Received: Tue, 13-May-86 03:19:20 EDT
Distribution: net
Organization: Dartmouth College, Hanover, NH
Lines: 24