Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site sdcc6.UUCP
Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!ittvax!dcdwest!sdcsvax!sdcc3!sdcc6!ix255
From: ix255@sdcc6.UUCP (John Antypas @ UC San Diego)
Newsgroups: net.micro.mac
Subject: Mac help!
Message-ID: <2133@sdcc6.UUCP>
Date: Thu, 27-Jun-85 22:24:45 EDT
Article-I.D.: sdcc6.2133
Posted: Thu Jun 27 22:24:45 1985
Date-Received: Mon, 1-Jul-85 06:30:50 EDT
Organization: U.C. San Diego, Academic Computer Center
Lines: 30
Keywords: Megamex C

Does anyone know of the proper way to interface the Megamex (2.1) C
compiler with Mac calls.  The system will expect a Mac Pascal STR255.
What do I feed it?  *char doesn't work and MMC is very unhappy about
the following (UNIX likes it though...)


char buffer[255];

.
.
.
buffer = " plot.res";
{Does not like above line! }
buffer[0] = (char)(strlen(s) -1 );

Even if I did get it working, I then use it to call 

int myresource;

myresource = openresfile(s); { Or whatever the name is }

and get an a Resource Manager Error = -43.  What's that?

Any body out there with a clue PLEASE tell me! 

John Antypas
UC San Diego

uucp: ...!{ucbvax,decvax,ihnp4,dcdwest,noscvax}!sdcsvax!sdcc6!ix255
arpa: ix255%sdcc6@sdcsvax.ARPA