/* Copyright 2004, Magnus Hagdorn This file is part of proj4. proj4 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. proj4 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with proj4; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include "cfortran.h" /* * error string */ FCALLSCFUN1(STRING,pj_strerrno,PRJF_STRERRNO,prjf_strerrno,INT); /* * initialise projection structure */ #define prjf_init_STRV_A4 NUM_ELEM_ARG(2) int cfort_pj_init(int *prj, int nargs, int largs, char *args) { int i; char **cargs; /* copying arguments */ cargs = (char **) malloc(sizeof(char *)*nargs); for (i=0;i