| 1 |
/* mainf.f -- translated by f2c (version 20030320). |
| 2 |
You must link the resulting object file with the libraries: |
| 3 |
-lf2c -lm (in that order) |
| 4 |
*/ |
| 5 |
|
| 6 |
#include <punc/vf2c.h>" |
| 7 |
|
| 8 |
/* Table of constant values */ |
| 9 |
|
| 10 |
static integer c__9 = 9; |
| 11 |
static integer c__1 = 1; |
| 12 |
|
| 13 |
/* |
| 14 |
* *************************************************************************** |
| 15 |
* PUNC = < Portable Understructure for Numerical Computing > |
| 16 |
* Copyright (C) 1994-- Michael Holst |
| 17 |
* |
| 18 |
* This library is free software; you can redistribute it and/or |
| 19 |
* modify it under the terms of the GNU Lesser General Public |
| 20 |
* License as published by the Free Software Foundation; either |
| 21 |
* version 2.1 of the License, or (at your option) any later version. |
| 22 |
* |
| 23 |
* This library is distributed in the hope that it will be useful, |
| 24 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 25 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 26 |
* Lesser General Public License for more details. |
| 27 |
* |
| 28 |
* You should have received a copy of the GNU Lesser General Public |
| 29 |
* License along with this library; if not, write to the Free Software |
| 30 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 31 |
* |
| 32 |
* rcsid="$Id: mainc.c,v 1.7 2010/08/12 05:52:57 fetk Exp $" |
| 33 |
* *************************************************************************** |
| 34 |
*/ |
| 35 |
|
| 36 |
/* * *************************************************************************** */ |
| 37 |
/* * File: mainf.f */ |
| 38 |
/* * */ |
| 39 |
/* * Purpose: Driver program for testing the VF2C. */ |
| 40 |
/* * */ |
| 41 |
/* * Author: Michael Holst */ |
| 42 |
/* * *************************************************************************** */ |
| 43 |
/* Main program */ int MAIN__(void) |
| 44 |
{ |
| 45 |
/* Builtin functions */ |
| 46 |
integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen), |
| 47 |
e_wsle(void); |
| 48 |
/* Subroutine */ int s_stop(char *, ftnlen); |
| 49 |
|
| 50 |
/* Fortran I/O blocks */ |
| 51 |
static cilist io___1 = { 0, 6, 0, 0, 0 }; |
| 52 |
|
| 53 |
|
| 54 |
s_wsle(&io___1); |
| 55 |
do_lio(&c__9, &c__1, "Hello, Word!", (ftnlen)12); |
| 56 |
e_wsle(); |
| 57 |
s_stop("", (ftnlen)0); |
| 58 |
return 0; |
| 59 |
} /* MAIN__ */ |
| 60 |
|
| 61 |
/* Main program alias */ int main () { MAIN__ (); return 0; } |