man PGAGetDataType (Fonctions bibliothèques) - Returns the data type used by the given context.
NAME
PGAGetDataType - Returns the data type used by the given context.
INPUT PARAMETERS
- ctx
- - context variable
OUTPUT PARAMETERS
- none
SYNOPSIS
#include "pgapack.h" int PGAGetDataType(ctx) PGAContext *ctx
LOCATION
pga.c
EXAMPLE
Example:
PGAContext *ctx;
int datatype;
:
datatype = PGAGetDataType(ctx);
switch (datatype) {
case PGA_DATATYPE_BINARY:
printf("Data Type = PGA_DATATYPE_BINARYn");
break;
case PGA_DATATYPE_CHARACTER:
printf("Data Type = PGA_DATATYPE_CHARACTERn");
break;
case PGA_DATATYPE_INTEGER:
printf("Data Type = PGA_DATATYPE_INTEGERn");
break;
case PGA_DATATYPE_REAL:
printf("Data Type = PGA_DATATYPE_REALn");
break;
case PGA_DATATYPE_USER:
printf("Data Type = PGA_DATATYPE_USERn");
break;
}