/*-------------------------------------------------------------------+
| Copyright (c) 1995, SAS Institute Inc. |
| Unpublished - All Rights Reserved |
| S A S / C S A M P L E |
| |
| NAME: FORT2CC |
| LANGUAGE: C |
| PURPOSE: THIS EXAMPLE DEMONSTRATES A C MAIN CALLING A |
| FORTRAN ROUTINE. |
| IT CONSISTS OF SAMPLE LIBRARY MEMBERS |
| FORT2CC, FORT2CF, AND FORT2C. |
| MVS - |
| COMPILE: USE JCL PROVIDED IN SAMPLE.AUX(FORT2C). |
| LINK: USE JCL PROVIDED IN SAMPLE.AUX(FORT2C). |
| EXECUTE: USE JCL PROVIDED IN SAMPLE.AUX(FORT2C). |
| TSO - |
| COMPILE: FORTRAN - USE FORTRAN COMPILER. |
| C - LC370C FORT2CC USING INDEP OPTION. |
| LINK: ILCLINK, USING CONTROL CARDS IN SAMPLE.AUX(FORT2C). |
| EXECUTE: CALL .LOAD(FORT2C) |
| CMS - |
| COMPILE: FORTRAN - USE FORTRAN COMPILER. |
| C - LC370 FORT2CC USING INDEP OPTION. |
| LINK: ILCLINK, USING CONTROL CARDS IN SAMPLE.AUX(FORT2C). |
| EXECUTE: CALL FORT2C |
| 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
void cprog(void)
{
printf("Hello FORTRAN/C World!\n");
return;
}