Newsgroups: comp.sys.transputer
From: Mark@nlcc.demon.co.uk (Mark Ian Barlow)
Subject: Calling C from occam with PROC.ENTRY
Organization: N.L.C.C. Ltd.
Date: Tue, 18 Feb 97 21:07:20 GMT
Message-ID: <856300040snz@nlcc.demon.co.uk>

Does anyone know how to retrieve the return code from main(), or equally
the argument of exit() when ececuting a C program within an occam harness
using PROC.ENTRY()? Neither the D7305a documentation nor D7405a seem to
mention it, but might it be left at some fixed offset in the workspace
array(s) passed to PROC.ENTRY() after the call?

I don't really care that it's an un-documented feature, if I can get at
it I'll use it! Shameless eh?

-- 
Mark Ian Barlow                Non-Linear Control Consultants Ltd.
-----------------------------------------------------------------
Mark@nlcc.demon.co.uk            Voice / Fax: +44 (0)1207 562 154


