Former-commit-id:7fa9dbd5fb
[formerly4bfbdad17d
] [formerly9f8cb727a5
] [formerly7fa9dbd5fb
[formerly4bfbdad17d
] [formerly9f8cb727a5
] [formerly8485b90ff8
[formerly9f8cb727a5
[formerly bf53d06834caa780226121334ac1bcf0534c3f16]]]] Former-commit-id:8485b90ff8
Former-commit-id:40aa780b3d
[formerly33a67cdd82
] [formerly 73930fb29d0c1e91204e76e6ebfdbe757414f319 [formerlya28d70b5c5
]] Former-commit-id: a16a1b4dd44fc344ee709abbe262aeed58a8339b [formerlye5543a0e86
] Former-commit-id:0c25458510
49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
#include <stdio.h>
|
|
#include <string.h>
|
|
/*
|
|
* Fortran prototype (see proto_gemlib.h)
|
|
*/
|
|
void in_scal_ (char *scale, int *iscals, int *iscalv, int *iret, size_t);
|
|
|
|
/*
|
|
* C prototype (see fortran_wrapper.h)
|
|
*/
|
|
void inc_scal (const char *scale, int *iscals, int *iscalv, int *iret);
|
|
|
|
/*
|
|
* underscore issue (uscore.h)
|
|
*/
|
|
#define in_scal in_scal_
|
|
|
|
void inc_scal (const char *scale, int *iscals, int *iscalv, int *iret)
|
|
/************************************************************************
|
|
* inc_scal *
|
|
* *
|
|
* This subroutine is a wrapper function for in_scal. It is used by *
|
|
* the Java JNA to resolve string size issues. *
|
|
* *
|
|
* inc_scal ( scale, iscals, iscalv, iret ) *
|
|
* *
|
|
* Input parameters: *
|
|
* *scale const char Scaling factor *
|
|
* *
|
|
* Output parameters: *
|
|
* *iscals int Scalar scaling factor *
|
|
* *iscalv int Vector scaling factor *
|
|
* *iret int Return code *
|
|
* 0 = normal return *
|
|
** *
|
|
* Log: *
|
|
* T. Lee/NCEP 3/10 C wrapper for IN_SCAL *
|
|
************************************************************************/
|
|
{
|
|
*iret = 0;
|
|
*iscals = -9999;
|
|
*iscalv = -9999;
|
|
|
|
/*
|
|
* Call Fortran funtion IN_SCAL.
|
|
*/
|
|
in_scal ( (char *)scale, iscals, iscalv, iret, strlen(scale));
|
|
return;
|
|
}
|