/*-------------------------------------------------------------------+
|                Copyright (c) 1995, SAS Institute Inc.              |
|                  Unpublished - All Rights Reserved                 |
|                    S A S / C   S A M P L E                         |
|                                                                    |
|       NAME: FORTCXPC                                               |
|   LANGUAGE: C++                                                    |
|    PURPOSE: THIS EXAMPLE DEMONSTRATES A FORTRAN PROGRAM CALLING    |
|             A C++ FUNCTION.                                        |
|             IT CONSISTS OF SAMPLE LIBRARY MEMBERS                  |
|             FORTCXPC, FORTCXPF, AND FORTCXPM.                      |
| MVS -                                                              |
|    COMPILE: USE JCL PROVIDED IN SAMPLE.AUX(FORTCXPM).              |
|       LINK: USE JCL PROVIDED IN SAMPLE.AUX(FORTCXPM).              |
|    EXECUTE: USE JCL PROVIDED IN SAMPLE.AUX(FORTCXPM).              |
| TSO -                                                              |
|    COMPILE: FORTRAN - USE FORTRAN COMPILER.                        |
|             C++ - LCXX  FORTCXPC USING INDEP OPTION.               |
|       LINK: ILCLINK, USING CONTROL CARDS IN SAMPLE.AUX(FORTCXPM).  |
|    EXECUTE: CALL .LOAD(FORTCXPM)                           |
| CMS -                                                              |
|    COMPILE: FORTRAN - USE FORTRAN COMPILER.                        |
|             C++ - LCXX FORTCXPC USING INDEP OPTION.                |
|        LINK: ILCLINK, USING CONTROL CARDS IN SAMPLE.AUX(FORTCXPM). |
|     EXECUTE: CALL FORTCXPM                                         |
| MISC NOTES: THE FOLLOWING LSCL102 MESSAGES CAN BE IGNORED:         |
|   WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(IFYVINTE)   |
|   WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(VFEE#)      |
|   WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(VFES#)      |
+-------------------------------------------------------------------*/
#include 
#include 
extern "C" void cprog(char* parm1)
{
 cout << parm1 << endl;
 return;
}