PGAGetDataType(3)

PGAGetDataType3

Returns the data type used by the given context.

Part of PGAGetDataType(8).

Usage

int PGAGetDataType(ctx)

PGAContext *ctx

Input parameters

ctx

- context variable

Output parameters

none

Location

pga.c

Examples

Example:
PGAContext *ctx;
int datatype;
:
datatype = PGAGetDataType(ctx);
switch (datatype) {
case PGA_DATATYPE_BINARY:
printf("Data Type = PGA_DATATYPE_BINARY0);
break;
case PGA_DATATYPE_CHARACTER:
printf("Data Type = PGA_DATATYPE_CHARACTER0);
break;
case PGA_DATATYPE_INTEGER:
printf("Data Type = PGA_DATATYPE_INTEGER0);
break;
case PGA_DATATYPE_REAL:
printf("Data Type = PGA_DATATYPE_REAL0);
break;
case PGA_DATATYPE_USER:
printf("Data Type = PGA_DATATYPE_USER0);
break;
}

Releases

8 releases since Debian 1.1 (Buzz); the text changed 1 time.

  1. 1.1
  2. 1.2–3.1

From pgapack 1.0.0.1-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.