welcome: please sign in

Revision 1 as of 2016-01-12 05:26:46

Clear message
location: Develop / Typedef

Types

For c/cpp users

HEADER: source/include/BDFTYPE.h

typedef long long INTEGER;
typedef double REAL;
typedef unsigned char BYTE;
typedef char* LPSTR;
typedef const char* LPCSTR;

Fortran passes pointer as parameters. Fortran functions are compatible with C, but not CPP.
C function(note the underline)

void fun_(REAL* fp)
{}

is equal to F subroutine

subroutine fun(f)
implicit none
real*8::f
end subroutine