Returns the data type used by the given context.
ctx
- context variable
none
#include "pgapack.h" int PGAGetDataType(ctx) PGAContext *ctx
pga.c
Example:
PGAContext *ctx;
int datatype;
:
datatype = PGAGetDataType(ctx);
switch (datatype) {
case PGA_DATATYPE_BINARY:
printf("Data Type = PGA_DATATYPE_BINARY\n");
break;
case PGA_DATATYPE_CHARACTER:
printf("Data Type = PGA_DATATYPE_CHARACTER\n");
break;
case PGA_DATATYPE_INTEGER:
printf("Data Type = PGA_DATATYPE_INTEGER\n");
break;
case PGA_DATATYPE_REAL:
printf("Data Type = PGA_DATATYPE_REAL\n");
break;
case PGA_DATATYPE_USER:
printf("Data Type = PGA_DATATYPE_USER\n");
break;
}