/*-------------------------------------------------------------------+
| Copyright (c) 1995, SAS Institute Inc. |
| Unpublished - All Rights Reserved |
| S A S / C S A M P L E |
| |
| NAME: C2PLIPC |
| LANGUAGE: C |
| PURPOSE: THIS EXAMPLE DEMONSTRATES A C MAIN CALLING A |
| PLI ROUTINE, WHICH TAKES A PARAMETER LIST. |
| IT CONSISTS OF SAMPLE LIBRARY MEMBERS |
| C2PLIPC, C2PLIPP, AND C2PLIPRM. |
| MVS - |
| COMPILE: USE JCL PROVIDED IN SAMPLE.AUX(C2PLIPRM). |
| LINK: USE JCL PROVIDED IN SAMPLE.AUX(C2PLIPRM). |
| EXECUTE: USE JCL PROVIDED IN SAMPLE.AUX(C2PLIPRM). |
| TSO - |
| COMPILE: PLI - USE PLI COMPILER. |
| C - LC370C C2PLIPC |
| LINK: ILCLINK, USING CONTROL CARDS IN SAMPLE.AUX(C2PLIPRM). |
| EXECUTE: CALL .LOAD(C2PLIPRM) |
| CMS - |
| COMPILE: PLI - USE PLI COMPILER. |
| C - LC370 C2PLIPC |
| LINK: ILCLINK, USING CONTROL CARDS IN SAMPLE.AUX(C2PLIPRM). |
| EXECUTE: CALL C2PLIPRM |
+-------------------------------------------------------------------*/
#include
main()
{
void *token;
extern __pli void writer();
if (!(token = mkfmwk("PLI", ""))) exit(16);
writer("Hello, PL/I world!");
if (dlfmwk(token)) exit(8);
exit(0);
}