Somehow the reply that you sent me is not related to the question that I tried to send to the gpc mailing list. My question was regarding trying to return a value from a pascal program.
I am trying to convert a PASCAL program from an IBM mainframe version to GNU Pascal. I fixed a couple of trival implementation details (such as <> instead of ^= and NOT for ^) but I have one problem left I can't figure out how to solve.
The original program had a return code, implemented by a call to RETCODE with a parameter. This was obviously an implementation supplied interface to allow the program to be a function.
How can I do this in GNU Pascal? My Pascal is 15 years rusty and I don't have a manual handy. I couldn't find anything in the binary distribution nor in the Web help. Am I going to have to do this by printing a value and then parsing the output?
Thanks, Ian Sinclair Software Development Engineer Nortel Networks, Belleville, ON CA
mailto:sinclair@nortelnetworks.com